Skip to content

Commit 692c855

Browse files
authored
6.0.0-alpha.1 changelog (#1273)
1 parent 7c64c04 commit 692c855

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,26 @@ Mapbox welcomes participation and contributions from everyone.
44

55
### main
66

7+
### v6.0.0-alpha.1 - July 20, 2021
8+
- Refactored `MapboxDirections` to accept `RouteOptions` as an argument that defines request parameters [#1265](https://github.com/mapbox/mapbox-java/pull/1265)
9+
- Moved the `requestUuid` object out of `RouteOptions` and into `DirectionsRoute` since the UUID is not a request parameter, it's a response value [#1265](https://github.com/mapbox/mapbox-java/pull/1265)
10+
- Added `enableRefresh` to `RouteOptions` since it is a route request parameter [#1265](https://github.com/mapbox/mapbox-java/pull/1265)
11+
- Removed a separate `WalkingOptions` in favor of storing the parameter directly in the `RouteOptions` [#1265](https://github.com/mapbox/mapbox-java/pull/1265)
12+
- Exposed `arriveBy` and `departAt` request parameters [#1265](https://github.com/mapbox/mapbox-java/pull/1265)
13+
- Exposed `ANNOTATION_CONGESTION_NUMERIC` parameter [#1265](https://github.com/mapbox/mapbox-java/pull/1265)
14+
- Updated documentation for various route request parameters [#1265](https://github.com/mapbox/mapbox-java/pull/1265)
15+
- Exposed `DirectionsResponse#fromJson(json, route options, request uuid)` that allows developers to provide information about the original route request which response they deserialize so that Nav SDK can operate correctly [#1265](https://github.com/mapbox/mapbox-java/pull/1265)
16+
- Exposed `DirectionsRoute#fromJson(json, route options, request uuid)` for same reason as above [#1265](https://github.com/mapbox/mapbox-java/pull/1265)
17+
- Exposed `RouteOptions#fromUrl` utility function that creates the object from the request URL which might be useful when paired with the above functions [#1265](https://github.com/mapbox/mapbox-java/pull/1265)
18+
- Added default values for `RouteOptions`: base URL, user, and geometry encoding (polyline6) [#1265](https://github.com/mapbox/mapbox-java/pull/1265)
19+
- 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 [#1265](https://github.com/mapbox/mapbox-java/pull/1265)
20+
- Fixed an issue where coordinates were rounded to 6 decimal places instead of 7 decimal places that the `GeoJSON` specification expects [#1265](https://github.com/mapbox/mapbox-java/pull/1265)
21+
- Changed the default encoding for MapMatching to be polyline6 and aligns it with regular route requests [#1265](https://github.com/mapbox/mapbox-java/pull/1265)
22+
- Added a `Bearing` object that represents a pair of values for {angle, degrees} [#1265](https://github.com/mapbox/mapbox-java/pull/1265)
23+
- Removed route request parameters verification in favor of letting the service respond with a correct error [#1265](https://github.com/mapbox/mapbox-java/pull/1265)
24+
- Stopped serializing access tokens [#1267](https://github.com/mapbox/mapbox-java/pull/1267)
25+
- Replaced `Closure` `@Nullable` annotations with `@NonNull` [#1268](https://github.com/mapbox/mapbox-java/pull/1268)
26+
727
### 5.9.0-alpha.5 - April 9, 2021
828
- Exposed a method to pass a single boolean snapping closure parameter [#1253](https://github.com/mapbox/mapbox-java/pull/1253)
929

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ repositories {
4646
}
4747
4848
dependencies {
49-
implementation 'com.mapbox.mapboxsdk:mapbox-sdk-services:5.8.0-SNAPSHOT'
49+
implementation 'com.mapbox.mapboxsdk:mapbox-sdk-services:6.0.0-SNAPSHOT'
5050
}
5151
```
5252

0 commit comments

Comments
 (0)