Maplibre Waypoint Arrival #118
Replies: 2 comments 3 replies
-
You use the correct way. At moment the project don't have the callbacks that Mapbox provides. And if we build something, we will internal use the same logic (watch route progress). Unfortunately I have no experience or answer to your second Graphhopper question. |
Beta Was this translation helpful? Give feedback.
-
To be honest I don't really understand the GraphHopper question. Would you like to have other info in the Banner? I guess that could be done on the GraphHopper side, but I don't really understand the use case yet. |
Beta Was this translation helpful? Give feedback.
-
Hi there,
I'm working on an application that uses Graphhopper and Maplibre for turn by turn navigation on routes that have many waypoints.
It is important that I know what waypoint I'm crossing and when it happens.
In terms of when it happens, up to this point, the best method I've found is to constantly monitor routeprogress and detect when the legs change, but this feels like a workaround. Mapbox has an arrival event, I'm wondering if there's similar functionality that I've missed in Maplibre.
In terms of what waypoint I'm crossing, I've been keeping an ordered list in the background, but obviously this is prone to error as I must keep the list of waypoints given to graphhopper and this list synced at all times. Currently I see "Waypoint X" in the banner instructions when approaching a waypoint, I haven't been able to find a way to modify this but if I could, I would feed an id list and read the banner instruction as I cross a waypoint. That may be more of a Graphhopper question though.
I'm using release 3.0.0 of maplibre-navigation-android
Thanks for your help
Beta Was this translation helpful? Give feedback.
All reactions