Reputation: 468
Is there an convenient way to import a Route from the HERE Intermodal Routing API, like the intendet way to import Routes from other HERE api via a Routehandle? Or an easy other way that doesn't change the Route like importing via GeoCoordinates ?
Upvotes: 0
Views: 362
Reputation:
We are supporting import feature for the routing V8 only. The Route Import service is a REST API that accepts GPS trace points and sub-set of routing parameters. The resulting response will contain a list of routes, which can then be used to consume additional map attributes on the driven path and other parameters such as ETA, traffic incidents, etc.
Sample request.
curl -X GET
'https://router.hereapi.com/v8/import?apikey={YOUR_API_KEY}&return=polyline,summary,actions,instructions,routeHandle&transportMode=car'
{
"trace": [
{
"lat": 52.541121,
"lng": 13.278989
},
{
"lat": 52.541338,
"lng": 13.276435
},
{
"lat": 52.544976,
"lng": 13.276273
},
{
"lat": 52.546982,
"lng": 13.275723
},
{
"lat": 52.548535,
"lng": 13.276305
},
{
"lat": 52.548535,
"lng": 13.27873
}
]
}
For more details please refer below link.
https://developer.here.com/documentation/routing-api/dev_guide/topics/route-import.html
Upvotes: 0