Mapbox Java SDK v3.4.0
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
voiceLanguagewhen converting aMapMatchingMatchingtoDirectionsRoute. This resulted in localization bugs in the Navigation SDK.