Java SDK
Current version:v7.3.0
View changelog
- Global directions
- Travel time matrix for multiple points
- Geocoding V5 and V6
- 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:7.3.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:7.3.0'
Turf: Runtime geospatial calculations.
implementation 'com.mapbox.mapboxsdk:mapbox-sdk-turf:7.3.0'
Core: Color, text, and networking utility classes.
implementation 'com.mapbox.mapboxsdk:mapbox-sdk-core:7.3.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
- For support using the Java SDK, browse Stack Overflow or contact support.
- For reproducible bugs and feature requests, open an issue in the Java SDK's GitHub repository.
- To contribute to this project, see the contributing guidelines on GitHub.