Java SDK

Current version: v5.6.0 View changelog

  • Global directions
  • Travel time matrix for multiple points
  • Geocoding
  • Map matching
  • Fastest route between multiple points
  • Static map images
  • Snap traces to road network
  • Geospatial analysis
  • 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:5.6.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:5.6.0'

Turf: Runtime geospatial calculations.

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

Core: Color, text, and networking utility classes.

implementation 'com.mapbox.mapboxsdk:mapbox-sdk-core:5.6.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