I have a back-end service where the route calculation is done and I will be using here-api to display the calculated route on map and start guidance, Can I know the API which can be used for this purpose ?
I have gone through, Here-API where I see
We can create an Route from RouteResult
on Overridden onCalculateRouteFinished()
function.
From the list we can get Route data and create a MapObject
.
Using this MapObject
add this to the Map.
But this is not my intention as I will not be having Route data at all.
Which Here-api
to call with Geo-Coordinates to display the route b/w them in the map.
In general it is not possible to transfer a route from a back end server (using HERE Routing API) to the HERE Mobile SDK. A workaround solution would be :
In the app , reconstruct the route using HERE Mobile SDK function CoreRouter.
calculateRoute(java.util.List<GeoCoordinate> routePoints, RouteOptions routeOptions, Router.Listener<java.util.List<RouteResult>,RoutingError> listener)