Difference between tce.api.here.com and fleet.ls.hereapi.com - here-api

i am modifying my code to use the new apiKey instead of app_code and i have a problem with the new https://fleet.ls.hereapi.com/2/tollcost service.
When i try to feed a route bigger than 600-800 linkID's i am getting the following error:
414 Request-URI Too Large
I dont have any problems with the old service.
I was trying to reduce the linkID count but the result is altered too.
Can i somehow compress the list of linkID's ?

The TCE API(tce.api.here.com) is legacy api and deprecated (but is still in functionality status) and will be not improved and not bug-fixed.
Please use the Fleet Telematics API to calculate toll cost instead of TCE API.
Fleet Telematics API is being improved and supported.

Related

additionaldata in HERE Maps Geocoding and Search API v7 Rest

It is possible to use somehow
&additionaldata=IncludeMicroPointAddresses,true
query parameter for geocode request in REST API v7
https://developer.here.com/documentation/geocoding-search-api/api-reference-swagger.html
or it`s possible only in old (and actively not maintained) API ?
Thanks to HERE Shruti Kuber from HERE Maps Slack channel:
"This is a known issue and the parameter is not yet supported in the new API. You can keep using the older one for now and we will publish when the new one has the capability"
https://developer.here.com/documentation/geocoding-search-api/release_notes/topics/known-issues.html

tce api tollcost.json returns no costs

For example this url returns no costs:
https://tce.api.here.com/2/tollcost.json?app_id=xxxx&app_code=xxxx&tollVehicleType=3&rollup=country&currency=EUR&route=-1201736915;-1126692456
Here's the response:
{"errors":[],"warnings":[],"costsByCountry":[],"onError":false}
If instead using the the fleet api calculateroute.json with the same coordinates:
https://fleet.api.here.com/2/calculateroute.json?app_id=xxxx&app_code=yyyy&waypoint0=49.45276,8.51315&detail=1&waypoint1=46.18977,6.24859&routelegattributes=none&routeattributes=none&maneuverattributes=none&linkattributes=none&legattributes=none&currency=EUR&tollVehicleType=3&mode=fastest;truck;traffic:disabled&rollups=country&alternatives=0
The response contains cost 93.89€:
"cost":{"totalCost":"93.89","currency":"EUR","details":{"driverCost":"0.0","vehicleCost":"0.0","tollCost":"93.89","optionalValue":0.0}}
Shouldn't both apis return the same cost?
HERE API provides two APIs one is to calculate toll cost optimised route using toll cost extension services and second one to get the route with Toll cost.
Here is the link for the documentation
Hope this helps.

How to get Timezone info, Timezone id in particular, in HERE API Batch geocoding process

I am moving from Google to Here-Api Geocoding service.I need to implement batch geocoding using HERE Batch Geocoder API. Till now I am able to get almost all of the needed info from Batch Geocoder API. However, I am not able to find a way to get TimeZone info in Batch Geocoder API response.
For example,I was able to get Timezone object through Here Forward Geocoding API- by set query parameters 'gen=9&&locationattributes=adminInfo,timeZone', but this two APIs-Geocoding and Batch Geocoder API seems to work slightly different.
I tried various combinations of query params using this generic URL:
http://batch.geocoder.cit.api.here.com/6.2/jobs?action=run&app_code=[your-app-code]&app_id=[your-app-id]&gen=8&header=true&indelim=|&outdelim=|&outcols=displayLatitude,displayLongitude,navigationLatitude,navigationLongitude,mapViewTopLeftLatitude,mapViewTopLeftLongitude,mapViewBottomRightLatitude,mapViewBottomRightLongitude,locationLabel,houseNumber,street,district,city,county,state,postalCode,country,relevance,matchLevel,matchType,matchCode,mapReferenceId,responseAdditionalData,addressAdditionalData&addressattributes=all&locationattributes=all&responseattributes=all&maxresults=5&outputcombined=true&mailto=[yourname#domain.com]
I took it from a response here:
How and what do responseattributes return for the Here Batch Geocoder API?
However, neither in posted URL nor in HERE Api documentation I found a way to include in "outcols" information for Timezone(i need only the TimeZone Id anyway).My logic is basically that if params gen=9 and locationattributes=adminInfo,timeZone are set it should work in Batch geocoding(as it works in Forward Geocoding API).
Looking at the documentation it seems to me that Timezone info is not included in batch geocoding response at all, which is a problem for me since I need Timezone Id and in this way after Batch geocoding I need to make request for each entry to set Timezone id.
In short, I need to take TimeZone info(TimeZone Id) from HERE Batch Geocoder API
The BatchGeocoder Service does not support time zones only the Geocoder Service does support this right now.

getting this error even after putting different keys in facial recognition door sample

even after entering the key I have been subscribed to a standard plan of the face api service but getting this error constantly.! Tried changing the end points and creating s0 tier API to but getting same error .
The project is old, and does not allow for specifying the API endpoint. I've made a fix in a fork and a pull request to the main project. Cognitive Service API keys are valid in only one region (i.e. you cannot use a westeurope key in westus, etc.)

Does addSideDatabase not work with Google Maps Engine Lite? Why no callbacks?

Exploring the addSideDatabase method in Google Code Playground (http://code.google.com/apis/ajax/playground/#adding_a_side_database), I tried to replace the URL with one for my Google Maps Engine Lite map (https://mapsengine.google.com/map/edit?mid=zaet3r0aK3bg.kEC1j3RZYDKw). It didn't work. Is Google Maps Engine Lite not supported? I can't find anything either way in the docs. Furthermore, why are neither the sideDatabaseSuccess nor sideDatabaseFail callbacks invoked?
I don't know for sure if Google Maps Engine Lite is supported, I think it possibly is as that has partly replaced the Google Earth Builder platform which did allow for such connections.
In any case usually to use any professional/enterprise functions you must make sure to pass your client ID when loading the actual Earth API. e.g.
var params = {"other_params":"client=CLIENTID&sensor=false"};
google.load("earth", "1", params);
See: https://developers.google.com/earth/documentation/#sidedatabase
Also note that if your map is private you'll need to provide authentication credentials along when you connect.

Resources