When your users want to get from one location to another, don’t push them out of your application into a generic map application. Instead, keep them engaged with your application 100% of the time with in-app turn-by-turn navigation.
The Mapbox Navigation SDK for Android is built on top of the Mapbox Directions API and contains logic needed to get timed navigation instructions.
The Mapbox Navigation SDK is a precise and flexible platform which enables your users to explore the world's streets. We are designing new maps specifically for navigation that highlight traffic conditions and helpful landmarks. The calculations use the user's current location and compare it to the current route that the user's traversing to provide critical information at any given moment. You control the entire experience, from the time your user chooses a destination to when they arrive.
If you are looking to include this inside your project, please take a look at the detailed instructions found in our docs. If you are interested in building from source, read the contributing guide inside this project.
The snippet to add to your build.gradle
file to use this SDK is the following:
// Mapbox Navigation SDK for Android
compile 'com.mapbox.mapboxsdk:mapbox-android-navigation:0.13.0'
To run the sample code on a device or emulator, include your developer access token in developer-config.xml
found in the project.
You'll find all of the documentation for this SDK on our Mapbox Navigation page. This includes information on installation, using the API, and links to the API reference.
- Need help with your code?: Look for previous questions on the #mapbox tag — or ask a new question.
- Have a bug to report? Open an issue. If possible, include the version of Mapbox Services, a full log, and a project that shows the issue.
- Have a feature request? Open an issue. Tell us what the feature should do and why you want the feature.
If you want to test recent bug fixes or features that have not been packaged in an official release yet, you can use a -SNAPSHOT
release of the current development version of the Mapbox Navigation SDK via Gradle, available on Sonatype.
repositories {
mavenCentral()
maven { url "http://oss.sonatype.org/content/repositories/snapshots/" }
}
dependencies {
compile 'com.mapbox.mapboxsdk:mapbox-android-navigation:0.14.0-SNAPSHOT'
}
We've added several navigation examples to this repo's test app to help you get started with the SDK and to inspire you.
We welcome feedback, translations, and code contributions! Please see CONTRIBUTING.md for details.