Skip to content

Mapbox Java SDK v3.4.0

Choose a tag to compare

@danesfeder danesfeder released this 06 Aug 20:35
· 414 commits to main since this release

Release 3.4.0

Includes:

  • Fixed typo in static map annotations and added tests for map annotations (#855)
  • Added toJson and fromJson to Directions models (#854)
  • Upgraded dependencies (#853)
  • Missing space (#846)
  • Add voiceLanguage to MapMatchingMatching (#847)

🚀 Example usage of new toJson and fromJson:

DirectionsResponse response = ...
DirectionsRoute route = response.routes().get(FIRST_ROUTE);
String routeJson = route.toJson();
DirectionsRoute routeFromJson = DirectionsRoute.fromJson(routeJson);

Bugs fixed 🐛

  • #855 addresses a typo with static map annotations where strokeWidth was being ignored in StaticPolylineAnnotation (for the url function).
  • #847 addresses an bug where we weren’t including the voiceLanguage when converting a MapMatchingMatching to DirectionsRoute. This resulted in localization bugs in the Navigation SDK.