mapbox / mapbox/mapbox-navigation-android

Set OffRouteObserver distance

Open
#6,639 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
651
Forks
321
PR merge metrics
No merged PRs in 30d

Description

Hello, a question :

Is it possible to set the (cross track) distance for the offroute observer between route and current location to detect off route state? Or alternatively to get the distance the observer detected ?

I also see that in [earlier versions](https://docs.mapbox.com/android/navigation/api/core/0.42.6/com/mapbox/services/android/navigation/v5/navigation/MapboxNavigation.html#setOffRouteEngine-com.mapbox.services.android.navigation.v5.offroute.OffRoute-) is was possible to provide a custom OffRouteObserver, I don't see this option any longer. Is it somewhere ?

Thank you

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source files or tests are named. Start by reviewing the current off-route observer API and implementation, then compare it with the linked 0.42.6 documentation. The work is complete when the supported way to set or retrieve off-route distance, and the status of custom observers, is clearly established or specified.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
api, mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.