Home

Awesome

<h1 align="center"> <br> <a href="https://www.mapbox.com/android-docs/java-sdk/overview/"><img src="https://github.com/mapbox/mapbox-java/blob/main/.github/mbxservice-logo.png" alt="Mapbox Service" width="400"></a> </h1> <h4 align="center">Build powerful Java apps using Mapbox's tools and services</h4> <p align="center"> <a href="https://circleci.com/gh/mapbox/mapbox-java"> <img src="https://circleci.com/gh/mapbox/mapbox-java.svg?style=shield&circle-token=:circle-token"> </a> <a href="https://codecov.io/gh/mapbox/mapbox-java"> <img src="https://codecov.io/gh/mapbox/mapbox-java/branch/main/graph/badge.svg"> </a> </p> <br>

The Mapbox Java SDK contains directions, geocoding, and many more APIs to use inside your Android or Java application. This repository holds the source code for the project and is divided into several modules to make it easier for developers to only include the dependencies needed for their project.

Getting Started

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 of this project.

Documentation

You'll find all of the documentation for this SDK on our Mapbox Java documentation page. This includes information on installation, using the APIs, and links to the API reference.

Getting Help

Using Snapshots

If you want to test recent bugfixes 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 Java SDK via Gradle, available on JFrog. There are several different snapshots built nightly. Feel free to use any of the modules as needed.

repositories {
    maven {
        url 'https://api.mapbox.com/downloads/v2/snapshots/maven'
        authentication {
          basic(BasicAuthentication)
        }
        credentials {
          username = "mapbox"
          password = "{secret Mapbox token with DOWNLOADS:READ scope, the same as the token used for the release repository}"
        }
    }
}

dependencies {
    implementation 'com.mapbox.mapboxsdk:mapbox-sdk-services:6.9.0-SNAPSHOT'
}

Sample code

View the CLI samples or download the Mapbox Demo App to see what's possible with the Mapbox Java SDK. You can also visit the Mapbox Android examples page for additional code examples.

Contributing

All libraries are contained within the mapbox folder. You can import the project using Android Studio or IntelliJ IDEA. Read the contribution guide to get setup properly.