mapbox-java

The Mapbox Java SDK – Java wrappers around Mapbox APIs and other location data

MIT License

Stars
419
Committers
54

Bot releases are hidden (Show)

mapbox-java - Mapbox Java SDK v6.4.0-beta.3

Published by LukasPaczos over 2 years ago

  • Fixed an issue where RouteOptions#fromUrl didn't deserialize the port number. #1382
mapbox-java - Mapbox Java SDK v6.4.0-beta.2

Published by LukasPaczos over 2 years ago

  • ⚠️ Fixed an issue where RouteOptions#avoidManeuverRadius field was represented as integer instead of double. This change is breaking but necessary to correctly represent the Directions API structure. #1376
  • Added railwayCrossing field to StepIntersection which indicates whether there is a railway crossing at the intersection. #1375
  • Added ability to handle encoded coordinates in RouteOptions#toUrl. #1377
mapbox-java - Mapbox Java SDK v6.3.0

Published by LukasPaczos over 2 years ago

  • No additional changes.
mapbox-java - Mapbox Java SDK v6.4.0-beta.1

Published by LukasPaczos over 2 years ago

  • Exposed viaWaypoints in RouteLeg #1364
  • Added RouteOptions#excludeObject for providing points that should be avoided in the returned route. #1362
  • Updated nullability of DirectionsWaypoint properties to reflect the API structure. #1360
  • Added DirectionsWaypoint#distance property. #1360
  • Added experimental EV routing request/response parameters. These change will only be part of pre-releases (removed from final versions) until refactored into stable APIs in the future. #1365
mapbox-java - Mapbox Java SDK v6.3.0-beta.1

Published by LukasPaczos over 2 years ago

  • Exposed turf.lineIntersect via TurfMisc#lineIntersect using an algorithm with O(nm) time complexity which should suite small to medium sized geometries until a more performant solution is implemented. #1348
  • Fixed an issue where ends of lines where not considered as intersection points. #1348
mapbox-java - Mapbox Java SDK v6.2.0

Published by VysotskiVadim over 2 years ago

v6.2.0 - January 20, 2022

mapbox-java - Mapbox Java SDK v6.2.0-beta.2

Published by abhishek1508 almost 3 years ago

  • Exposed ShieldSprites, ShieldSprite and ShieldSpriteAttribute in support for mapbox designed route shields. #1336
  • Added a fix so that no forbidden characters are found in the encoded URL. #1337
  • Removed optimization coordinates limit check. #1339
mapbox-java - Mapbox Java SDK v6.2.0-beta.1

Published by LukasPaczos almost 3 years ago

  • Added EXCLUDE_CASH_ONLY_TOLLS(#1309) and EXCLUDE_UNPAVED(#1308) options to DirectionsCriteria.
  • Exposed DirectionsRoute.Builder#routeIndex to allow construction when route object is not generated by mapbox-java library. #1328
  • Added data models for MapboxShield. #1330
mapbox-java - Mapbox Java SDK v6.1.0

Published by Zayankovsky almost 3 years ago

v6.1.0 - November 11, 2021

  • Added avoid_maneuver_radius to Directions API params and avoidManeuverRadius to RouteOptions. #1310
  • Added encoding for parameters transformed with RouteOptions.toUrl. #1317
mapbox-java - Mapbox Java SDK v6.0.1

Published by cafesilencio almost 3 years ago

v6.0.1 - November 04, 2021

  • Refactoring related to URL building for RouteOptions.toUrl. #1313
mapbox-java - Mapbox Java SDK v6.0.0

Published by n-frolov about 3 years ago

No additional changes. No issues were identified during testing and the last pre-release has been promoted to stable.

The full list of changes for v6.0.0 is available here.

mapbox-java - Mapbox Java SDK v6.0.0-alpha.9

Published by korshaknn about 3 years ago

Fixed RouteOptions#toUrl() function. #1302

mapbox-java - Mapbox Java SDK v6.0.0-alpha.8

Published by LukasPaczos about 3 years ago

  • Exposed RouteOptions#toUrl() function.
mapbox-java - Mapbox Java SDK v6.0.0-alpha.7

Published by kmadsen about 3 years ago

  • Exposed include-hov/hot parameters and added exclude list option #1296
mapbox-java - Mapbox Java SDK v6.0.0-alpha.6

Published by abhishek1508 about 3 years ago

  • Added support for active_direction encapsulated in lane banner component. #1294
mapbox-java - Mapbox Java SDK v6.0.0-alpha.5

Published by abhishek1508 about 3 years ago

  • Added support for layers to RouteOptions object. #1279
  • Added support for missing country code and lanes blocked properties to Incident object. #1288
  • Added support for missing congestion numeric property to LegAnnotation object. #1290
mapbox-java - Mapbox Java SDK v6.0.0-alpha.4

Published by Zayankovsky about 3 years ago

  • Added support for metadata response from Directions API. #1282
  • Added max_width and max_height to Directions API params. #1283
mapbox-java - Mapbox Java SDK v6.0.0-alpha.3

Published by korshaknn about 3 years ago

  • Bumped okhttp version to 4.9.0. It requires java 1.8 for compatibility. #1271
mapbox-java - Mapbox Java SDK v6.0.0-alpha.2

Published by LukasPaczos about 3 years ago

  • Removed accessToken from RouteOptions and moved it to MapboxDirections instead. This simplifies serialization and deserialization of route objects without potential leaks of data under the assumption that an entity that makes a route request has an ability to provide an access token without the route object having to transport it. #1276
mapbox-java - Mapbox Java SDK v6.0.0-alpha.1

Published by korshaknn about 3 years ago

  • Refactored MapboxDirections to accept RouteOptions as an argument that defines request parameters #1265
  • ⚠️ Added a List overload in RouteOptions for coordinates, now there are RouteOptions#coordinates(string) and RouteOptions#coordinatesList(list). If there are routes that were previously serialized with toJson methods and contained RouteOptions, they will not be possible to deserialize anymore since coordinates are now stored as a string and not an array. This breaking change can typically impact test fixtures. To address the change in your existing serialized routeOptions, change the coordinates array to a semicolon-separated string, for example:
- "coordinates":[[-122.5237429,37.975393],[-122.5231413,37.9750695]]
+ "coordinates":"-122.5237429,37.975393;-122.5231413,37.9750695"
  • ⚠️ Stopped serializing access tokens. This means that if you're deserializing a route that has routeOptions property, you need to explicitly provide an access token in DirectionsRoute#fromJson(routeJson, accessToken) or an exception will be thrown. #1267
  • Moved the requestUuid object out of RouteOptions and into DirectionsRoute since the UUID is not a request parameter, it's a response value #1265
  • Added enableRefresh to RouteOptions since it is a route request parameter #1265
  • Removed a separate WalkingOptions in favor of storing the parameter directly in the RouteOptions #1265
  • Exposed arriveBy and departAt request parameters #1265
  • Exposed ANNOTATION_CONGESTION_NUMERIC parameter #1265
  • Updated documentation for various route request parameters #1265
  • Exposed DirectionsResponse#fromJson(json, route options, request uuid) that allows to provide information about the original route request which response they deserialize so that Nav SDK can operate correctly #1265
  • Exposed DirectionsRoute#fromJson(json, route options, request uuid) for same reason as above #1265
  • Exposed RouteOptions#fromUrl utility function that creates the object from the request URL which might be useful when paired with the above functions #1265
  • Added default values for RouteOptions: base URL, user, and geometry encoding (polyline6) #1265
    #1265
  • Fixed an issue where coordinates were rounded to 6 decimal places instead of 7 decimal places that the GeoJSON specification expects #1265
  • Changed the default encoding for MapMatching to be polyline6 and aligns it with regular route requests #1265
  • Added a Bearing object that represents a pair of values for {angle, degrees} #1265
  • Removed route request parameters verification in favor of letting the service respond with a correct error #1265
  • Replaced Closure @Nullable annotations with @NonNull #1268