I tried with the below URL but didn't get elevation for the maneuver points in the legs segment. Is elevation API, and truck based routing, available in India?
https://route.ls.hereapi.com
Can I get truck based routing by selecting mode as - mode=fastest;truck?
Truck based routing with elevation is available in India. You selection mode is correct to enable truck routing.
Elevation of a route can be enabled by setting parameter "returnElevation" to true.
If set to true, all shapes inside routing response will consist of 3 values instead of 2. Third value will be elevation. If there are no elevation data available for given shape point, elevation will be interpolated from surrounding points. In case there is no elevation data available for any of the shape points, elevation will be 0.0. If jsonattributes=32, elevation cannot be returned.
Sample truck routing with elevation between Mumbai and New Delhi with HERE Routing API V7.2 - your own app_id/app_code needed
For details regarding truck routing and elevation, please check the document page here
To get a feeling with different attributes and parameters available in the API, you can also try the reference client
Related
Using HERE Maps Api, for a geographic coordinate (lat, lng), I would like to find address information for the nearest routable road. Information that includes:
Address (street, house number, city, postal code, country)
Bearing/Heading of the road (0 to 360 degrees from True North)
How can I achieve this through HERE Maps API?
So far, this is what I have been able to achieve:
Calling the calculate Route API with identical start and end endpoints and mode=car will force the API to snap to the nearest routable point. This step is necessary for when the input coordinates are for a pedestrian street.
Using the nearest routable point coordinates, I can call reverse GeoCode API and I will be able to find the address information I need.
The next step is where I'm currently stuck. I'm able to find information like direction=NW, however I can't find the ~exact bearing in grad, for example bearing=265.
Is this achievable? Are 3 steps really necessary or is there a HERE Maps API endpoint that can provide all of this?
You can use the Fleet Telematics API to get the headings value for a particular road. Read more about the api here - https://developer.here.com/documentation/platform-data/topics/quick-start-view-map-data.html
You can also look at the field explanationshere - https://tcs.ext.here.com/pde/layer?region=WEU&release=19111&url_root=pde.api.here.com&layer=ADAS_ATTRIB_FC1
HEADINGS Horizontal road heading [10^-3 degree] at coordinate points along the link, when driving from Reference Node. Comma separated. Each value is relative to the previous. No values here for the ref/nonref nodes, because they are in the separate fields REFNODE_LINKCURVHEADS and NREFNODE_LINKCURVHEADS.
I started exploring HERE maps few days back and I want to get road specify data (tunnel, bridge, overpass, underpass, speed limit) like the one returned using "Fleet Telematics Advanced Data Sets" after using specific layer. I see that this returns list of all the points that belong to particular tile.
But just want to for gps points that my path has and not on an area. Is it possible using any HERE maps api or any manipulations to the above API or any other WAR?
It is not possible to get road geometry for a single gps point buut rather for the link/road in which the gps point is. If you want to find get road geometry details for the links/roads of a particular route you can get it by using Fleet Telematics API. Adding "attributes=ROAD_GEOM_FCn(TUNNEL,BRIDGE)" can fetch you the details whether the road is a tunnel or a bridge etc. Hope this helps!
http://cre.cit.api.here.com/2/calculateroute.json?app_id=xxxx&app_code=xxxx&mode=fastest;truck;traffic:disabled&driver_cost=10&waypoint0=55.308989,10.805059&waypoint1=55.368920,11.288338&attributes=ROAD_GEOM_FCn(TUNNEL,BRIDGE)
I'm trying to calculate route summary for a truck using Fleet Telematics Custom Routes API (https://cle.api.here.com/2/calculateroute.json).
And I'm getting an error saying: Cannot match lat/long onto a road link with 100.0m search radius.
The error is, in fact, correct since Truck is in the middle of a big warehouse and there are no roads in 100 radius.
So the question is how can I increase search radius to prevent this error. OR there are any other options?
Thanks in advance!
You can add a radius parameter in meters after the position, ex for 500m:
waypoint0=geo!48.85718,2.34141;500
Source doc:
https://developer.here.com/documentation/routing/topics/resource-param-type-waypoint.html
https://route.api.here.com/routing/7.2/calculateroute.json?xnlp=CL_JSMv3.0.17.0&app_id[app_id]&app_code[app_code]&mode=fastest%3Btruck&representation=display&language=en-us&waypoint0=33.95%2C-117.4&waypoint1=34.43%2C-117.3&waypoint2=34.6%2C-117.33&waypoint3=34.6%2C-117.33&waypoint4=35.0%2C-117.65&waypoint5=35.13%2C-118.45&waypoint6=35.77%2C-119.25&waypoint7=36.51%2C-119.55&waypoint8=36.57%2C-119.61&waypoint9=36.57%2C-119.61&waypoint10=37.69%2C-122.14&waypoint11=37.6930555555%2C-122.1675
2.https://route.api.here.com/routing/7.2/calculateroute.json?xnlp=CL_JSMv3.0.17.0&app_id[app_id]&app_code[app_code]&mode=fastest%3Btruck&representation=display&language=en-us&waypoint0=33.95%2C-117.4&waypoint1=34.43%2C-117.3&waypoint2=34.6%2C-117.33&waypoint3=34.6%2C-117.33&waypoint4=35.0%2C-117.65&waypoint5=35.13%2C-118.45&waypoint6=35.77%2C-119.25&waypoint7=36.51%2C-119.55
Route for these waypoints dont seem to be working.
I did have a look for the first request and it will be calculated the vehicle car without any issue. That points to and issue within the truck routing and the error message NGEO_ERROR_GRAPH_DISCONNECTED underlines this assumption.
We have here an extended demo available which you can use for an analysis:
https://tcs.ext.here.com/examples/v3/fleet_telematics_api
If you add the waypoints there and calculate the truck route the error message points to waipoint 8. With a recalculation you can display a car route and have a look within the truck overlay where the possible connection issue lies.
I am developing a website in ASP.NET in which I need accurate coordinates of properties and populate their markers on Google Maps. I read the Google Maps API documentation and it doesn't accept business names or house numbers. So if I add 5 properties on Moseley Road with postal code WR2 6NJ, they all receive the same coordinates at the beginning of the road, where as they're all separate properties with separate coordinates, for example: Arthur Amos Associates Ltd, Moseley Farms etc.
How can I increase the accuracy so each address gets it's own coordinates? I tried the ROOFTOP and street_address parameters but they didn't help. Do I need to get Google Maps API for Work to get this level of accuracy?
Thanks.