heremaps / here-android-sdk-examples

Java-based projects using the HERE SDK for Android.
Apache License 2.0
145 stars 191 forks source link

How to manually reroute in HERE Maps Android Premium #454

Open nicholasstathakis opened 3 years ago

nicholasstathakis commented 3 years ago

Hi,

I was wondering if there was a more elegant way to reroute a 'custom' route in HERE maps. By 'custom', I mean I have put together a route with an Origin (STOP_POINT), middle waypoints (VIA_WAYPOINTS) and a destination (STOP_POINT). With the in-built rerouting, all the VIA_WAYPOINT's are disregarded, thus I have created my own. However, I have no been able to fully disable the automatic rerouting. How would this be possible?

Thanks

NazarKacharaba commented 3 years ago

Hi @nicholasstathakis You can create middle points as STOP_POINT then route will have to go through these points.

You can also reset your custom route in case onRerouteBegin is triggered, but this approach is a bit 'glitchy', on the UI will see that is not quite smooth compare to 'native in-box' rerouting.