mapbox-navigation-android icon indicating copy to clipboard operation
mapbox-navigation-android copied to clipboard

Why api_token is mandatory ?

Open AryaNyx opened this issue 8 years ago • 7 comments

hi , we are using mapbox navigation , mapbox map SDK solved the mandatory api_token bug in V6.2.x , the new navigation sdk ( V0.16.0 ) is using mapbox map V6.3.0 , but NavigationRoute Builder needs NonNull api_token. We have all of route , geoCode , reverseGeoCode & etc related to map and no need any apis from mapbox, in our base mapview we using mapbox map 6.3.0 without api_token perfectly. now we need navigation sdk without api_token. Is it in your plan to make it Nullable ?

AryaNyx avatar Jul 29 '18 11:07 AryaNyx

Hey @AliKhoshraftar 👋 thanks for your feedback here. I'm a bit confused by your question, so bear with me as I clarify.

We have all of route , geoCode , reverseGeoCode & etc related to map

but NavigationRoute Builder needs NonNull api_token

If you have your own route API, then you wouldn't need to use NavigationRoute? So you're asking this with regard to the constructor of MapboxNavigation?

danesfeder avatar Jul 30 '18 13:07 danesfeder

Hey @AliKhoshraftar following up here, do my questions make sense?

danesfeder avatar Aug 02 '18 20:08 danesfeder

Hi , thanks for your answer. As i understood i need only navigation-ui module right ? I'm using NavigationRoute because of our models are different , so i changed DirectionService and MapboxDirections classes to my requirements and call it again after draw route at the first time. You mean if i use same response like DirectionsResponse i don't need to initialize NavigationRoute right ?

Thanks in advanced

AryaNyx avatar Aug 05 '18 07:08 AryaNyx

@danesfeder Hey , i'm waiting , i forgot to tag you. thanks.

AryaNyx avatar Aug 06 '18 11:08 AryaNyx

When you say We have all of route , geoCode , reverseGeoCode & etc related to map, I'm assuming this means you have all data needed without our APIs. So you already have a DirectionsRoute to be used with the SDK, and you are wondering why you need an access token to create an instance of MapboxNavigation?

danesfeder avatar Aug 06 '18 17:08 danesfeder

@AliKhoshraftar are you able to speak to any of the questions above? ^

danesfeder avatar Sep 04 '18 17:09 danesfeder

@AliKhoshraftar going to close as stale here - if you have other questions regarding this, let us know. Thanks!

danesfeder avatar Oct 03 '18 14:10 danesfeder