I have a defined a route with 10 waypoints, and I have a vehicle that has to follow this route. For every hour, I have to check if the current position of the vehicle is within this predefined route. If the vehicle is X km from the radius of the route, it has a route deviation.
My question is if there is a way for me to inform the complete route with the 10 points + the current position of the vehicle and to return the distance that it is of that route. I would need to use a REST method for this.
Is there any method in HERE for this? For I have already searched and have not found.
You have two solutions to solve this problem
Geofencing Extension API - Define a geofence around your route if you want to allow a threshold of deviation from the defined route.
Custom Location Extension API - Searching along a route's isoline to see if your asset(eg: truck) is on the right direction.
You can go through the examples provided in the site on these topics or you can also look at the examples provided in tcs.ext.here.com/examples.
Related
I know that there is a Google API that can provide directions and/or driving distance between 2 points.
Is there a way to get all of the zip codes that the route passes through, or within a specified distance from the route?
The application has to do with deliveries. E.G. a truck is making a delivery from point A to point B. I would like to get all of the zip codes along the route in order to determine which other deliveries can be done in the same trip.
I've only found one post for something similar, but it's old, the links aren't valid any more and I would think there is something else out there.
I am using the Routing service to get the route between two points. I would like to return attractions or places along or near the route, if possible. I have searched but unable to find anything that looks like it does what I need.
You can use the browse end point for the same. This endpoint provides search results for places based on different filters, such as categories or name, ranked by distance from a given search center. The only mandatory elements exposed in the response are id and position. The other elements shown in the response samples section are only dataset attributes suggestions.
https://browse.search.hereapi.com/v1/browse
For more details please check below doc. https://developer.here.com/documentation/geocoding-search-api/dev_guide/index.html
I've been using HERE api to calculate the roughness profiles of the route. I need to pass more than 100 waypoints to get the IRI index. Is it possible to pass n number of waypoints or is there certain limit to it?
We only support GET method, POST will allow more, but it is not (yet) supported currently support whatever URL length limits allow.. So something like 100+ waypoints, but for optimising the route, there is a separate service which solves this is provided below.
https://developer.here.com/documentation/routing-waypoints/dev_guide/topics/quick-start-simple-car.html
For our use case, we need a turn-by-turn navigation on a mobile device but using a custom route.
Please let me know if the following usage scenario is possible:
Given an array of points (lat/long) that the route needs to pass through, get a route using CalculateRoute.
Create a deeplink for HERE WeGo (e.g. iOS) using the sequence of waypoints obtained in step #1
Navigate turn by turn in HERE WeGo along the route
So far I was successful in #1 but could not create a deeplink with the same route for HERE WeGo. When I create a link, the app simplifies the route to only include origin and destination points and omits all "via" points.
Would appreciate advice on this.
In general passing the waypoints one after the other should open the route with the intermediate points (at least on wego.here.com) , not so sure if this work out of the box in HERE WE Go https://developer.here.com/documentation/deeplink-web/dev_guide/topics/share-route.html
I'm currently trying to use the the calculateroute endpoint to avoid certain roads that I specify.
It accepts avoidLinks parameter in which a list LinkIdTypes can be specified which determines the network links to be avoided when calculating the route.
What I'm having trouble finding is how do I get those LinkIdTypes, does Here provide an endpoint to query them (specifiying lat & lng)? or perhaps an endpoint I can use to define my own which then gives me a LinkIdType which I can reuse for future calls?
tl;dr: Where do I get LinkIdTypes for a specific road?
Addendum: I am aware of avoidAreas but this seems too cumbersome to use since I have to specify a bounding box instead of a road segment.
you can get linkId by doing a reverse geocode of a lat,lng.
Exemple of reverse geocode .
LinkId is available in the field ReferenceId.
You can also get the list of linkId of your route with calculateroute using legAttributes=links.
Exemple of calculate route