I want to use Fleet Telematics API and get information about traffic time/travel time and distance by country similar to what is described here. As you can see this is supported in Routing API but it does not support "bus" as a TransportMode.
I tried to use "rollups" query param but it only aggregates toll costs by country not distance and time which I'm looking for. Is there a way to achieve this with Fleet Telematics API?
Please check if this accomplished your task.
http://cre.api.here.com/2/calculateroute.json?app_id={}&app_code={}&overlays=OVERLAYMYMAP&mode=fastest;bus;traffic:enabled&waypoint0=geo!50.8857,14.81589&waypoint1=geo!50.8681536,14.8308207
for more information.
https://developer.here.com/documentation/custom-routing-extension/dev_guide/topics/resource-calculateroute.html
Related
I am trying to implement a route calculator with the HERE API. I should show the toll costs of the given route for the user. However, I have some questions, I could not find any answer in the documentation for:
Are the given toll costs net value, i.e. is VAT included or not? Based on my test requests, it looks like there are some countries where VAT is included, and it is excluded in others. Are there any arguments in the result from HERE providing information on this?
One can specify the currency in which the costs are calculated, but I could not find any information on the exchange rates applied. I would like to show this also for the user. Is it possible to get this in the result, too? Or maybe is the source of this data public?
As the toll costs and the toll roads may change over time, I would like to also show the time of data for the user. Is there any argument for this given back by HERE in the result?
I assume you are using the HERE Fleet Telematics API.
VAT is expected to always be included. No, there is no such argument in the API.
No, you cannot get this information in the results. The only trick I can suggest, is to make 2 consecutive calls to the API, one using the first currency and another one using the second currency, and therefore derive from these results the applied exchange rate.
There's no such argument. You should assume that HERE's toll cost data is always fresh.
Toll cost calculation is provided via Here Fleet Telematics API.
Total toll cost includes the VAT
And as per the documentation the below details can be retrieved.
In addition, toll cost detail can be requested on different levels, using the "rollups" parameter:
a. total summary only
b. cost per road link
c. cost per country
d. cost per toll system
Exchange rates are not provided rather currency can be provided.
There is no history of route calculation provided , all the data that are provided are latest.
I'm using the Here API to calculate routes for trucks with 40t. Using the HERE devtools, i got the same error of my APP. The answer is "The API can't calculate the route because of illegal access". I checked the map (image attached) and in the street where my journey will start, with a difference of some meters, it exists two limitations 12t and 18t. The street is one way... If you see the satellite image exists several trucks... The company is testing the software says the trucks goes their...
Can some help me on this?
https://fleet.api.here.com/2/calculateroute.json?waypoint0=41.325299,2.141551&waypoint1=stopOver,3600!41.3291843,2.0317197&waypoint2=stopOver,3600!40.91260530,-8.42291420&waypoint3=38.855951,-9.104382&mode=fastest;truck;traffic:enabled&departure=2020-08-19T02:57:58&alternatives=0&weightPerAxle=14t&limitedWeight=40t&height=4m&width=2.55m&length=16.5m&trailersCount=
If you want to ignore the restrictions for trucks in the route, add the parameter truckRestrictionPenalty and set the value to soft.
The route violating truck restrictions is indicated in the response with dedicated route and manoeuvre notes. The route with the note of the type violation and the text truckRestriction may be travelled at your own responsibility. While driving on such a route, extra care has to be taken as it may result in a vehicle or road infrastructure damage.
You can read more about the parameter here.
Thanks for your feedback, but we are using the Fleet Telematics Api not the Routing API. Using your info, We researched a litle more and we found the equivalent parameter: ignoreWaypointVehicleRestriction.
We added these params &ignoreWaypointVehicleRestriction=5000;0;all and the API returned the route with the warning.
Thanks,
I need to use the Fleet Telematics API since I need to calculate tolls (since the routing API doesn't), and I want to adjust the speedProfile to fast.
I see I can do that with the speedProfile parameter for the routing api, but that parameter seems to do nothing for the fleet telematics API.
So, is there no way to set the speed profile for the fleet telematics api? I need to use truck routing, but want normal car speed.
Or, is there another API that will calculate tolls AND let me adjust the speed profile?
Indeed there is no speedProfile parameter for the fleet telematics API. But, it is possible to use speedFcCat parameter to override the default driven speed values.
From the documentation here
speedFcCat: Comma separated list of speeds driven in kilometer per hour per road functional class (1-5 + Virtual Connections VC) and speed category (1-8) (f.e. FC1-SC1,FC1-SC2,...,FC1-SC8;FC2-SC1,FC2-SC2,...;...;VC-SC1,FC-SC2,...VC-SC8). Functional classes are semicolon separated. Can contain empty entries (no change to default f.e. 80,76,,,,,,;,,,54,46,,,;...).
I have latitude and longitude where my car is driving on highway. I want to know whether my car speed is greater than highway speed where I am driving
You can achieve this by using the simple Routing API(used for routing usecases) or Fleet Telematics API(used for complex routing problems like trucks).
Routing API: The below example provides the speed limits in a particular route. You can check this against your car speed limit to verify if you are driving within limits. Read more about the api in Here developer site - https://developer.here.com/documentation/routing/topics/resource-get-route.html
https://route.api.here.com/routing/7.2/calculateroute.json?waypoint0=41.69758,-87.78397&waypoint1=41.70056,-87.77429&mode=fastest;car&storage=readonly&linkAttributes=speedLimit&app_code=yyyyy&app_id=xxxx&representation=linkPaging
Fleet Telematics API: You can get the speedlimit information along a route using this api as well. Here provides numerous examples on how to do this in https://tcs.ext.here.com/examples site. Just login with your Here credentials and search for speed. You can take a look at the source code there. You can also read more about this api in Here website https://developer.here.com/documentation/fleet-telematics/dev_guide/index.html
Hope you find these useful!Happy Coding!
I am using Google Map API 3.0 to calculate the distance of two places. I can calculate it easily.
But now I need to find out every bridge or ferry service tolls (if any).
For example if I try to get the route direction of [DFW Airport, Grapevine, TX, USA] to [McKinney, TX, USA] in Google Map I get “This route has tolls”.
But using Google Map API I can’t find it. How can I figure out this?
I think Google Maps gives advice about tolls and ferries.
But Google Maps API totally ignore these.