I have a GPS trails that I recorded and I want to use that route in HERE turn-by-turn navigation. Is there any way I can load the GPS points and pass it to the route engine and used in TBT mode.
Any recommendation? Thank you in advance.
Unfortunately, it is not directly supported at the moment. What you could try is to use PositionSimulator
to load your GPX or NMEA file and then use int getPositionCount()
and GeoPosition getPosition(int index)
to get the GeoCoordiante
for the points in the file. Then you could calculate a Route
from the RoutePlan
to use with NavigationManager
.
You would want to keep the number of waypoints reasonable (~50 waypoints or less), otherwise, performance will not be the best, so you would have to implement some simplification of the trace. Maybe there are open source libraries available which can convert and simplify NMEA of GPX to GeoCoordinates for you...
FYI, if you do have a GPX or NMEA trace, you can also simulate playback of the trace using PositionSimulator
, but this is not exactly what you want. Also, if you do happen to generate the Route
from your trace, you can save it for future use using the Route#serialize()
API.