maplibre / maplibre-navigation-android

Maplibre Navigation SDK for Android
MIT License
86 stars 44 forks source link

Route Snapping: Zero bearing between legs/waypoints #74

Closed Fabi755 closed 1 year ago

Fabi755 commented 1 year ago

Maplibre Navigation SDK version: 2.0.0

Steps to trigger behavior

  1. Enable route snapping
  2. Navigate along a waypoint
  3. The snapped bearing is moved to zero by reaching waypoint.

For a working example, see snap to route use case of #73

Expected behavior

Actual behavior

Fabi755 commented 1 year ago

I'm already working on this issue and will create a new PR in next days.

The reason is that the snap logic is not looking for upcoming legs.