androidandroid-studiokotlinmapboxmapbox-android

How do I start from a different location in Android Studio with Mapbox?


The Mapbox API allows integration of map services into Android Studio applications. I'm using it to create a new navigation application. It doesn't follow the device's location but always starts in San Francisco this is ok for my purposes. However, I can't figure out where to change the starting location.

Link to the Code I'm using:

https://github.com/mapbox/mapbox-navigation-android-examples/blob/main/app/src/main/java/com/mapbox/navigation/examples/turnbyturn/TurnByTurnExperienceActivity.kt

I think it should be changeable here somewhere. Thanks for any answers!


Solution

  • Found my own Answer, it is changeable within the function: onStartNavigation()