Skip to main content

Java SDK

Current version: v6.15.0View changelog

  • check
    Global directions
  • check
    Travel time matrix for multiple points
  • check
    Geocoding
  • check
    Map matching
  • check
    Fastest route between multiple points
  • check
    Static map images
  • check
    Snap traces to road network
  • check
    Geospatial analysis
  • check
    Isochrones

The Mapbox Java SDK is an open source toolset for building projects that need directions, geocoding, static map images, geospatial calculations, and more. It provides convenient wrappers around Mapbox APIs for use in any Java application. This SDK does use AndroidX annotations but has no dependencies on the Android SDK API.

Available packages

Here are the current Java SDK dependencies that you can use in your Android or Java project.

GeoJSON: Java classes that model the GeoJSON spec.

implementation 'com.mapbox.mapboxsdk:mapbox-sdk-geojson:6.15.0'

Services: Convenient wrappers to interact with Mapbox APIs: Matrix, Geocoding, Tilequery, Optimization, Static Image, Map Matching, and Isochrone.

implementation 'com.mapbox.mapboxsdk:mapbox-sdk-services:6.15.0'

Turf: Runtime geospatial calculations.

implementation 'com.mapbox.mapboxsdk:mapbox-sdk-turf:6.15.0'

Core: Color, text, and networking utility classes.

implementation 'com.mapbox.mapboxsdk:mapbox-sdk-core:6.15.0'

Access tokens

You'll need to have a Mapbox access token if you plan to use any of the mapbox-sdk-services Mapbox APIs wrappers. An access token is not needed if you plan to use the Mapbox Java SDK's GeoJSON package, Turf package, or certain parts of the Core package. Learn more about how Mapbox access tokens work.

Support and contributions

Was this page helpful?