You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CHANGELOG.md
+44
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,50 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
8
+
## Version 4.0.0 - 2025-01-27
9
+
10
+
### Added
11
+
12
+
- Adds support for the OSRM format and navigation aids.
13
+
- Explicitly documented more properties on the geocoding feature model.
14
+
- Adds support for the `foursquare` data source.
15
+
- Documents the elevation interval parameter on certain routing requests.
16
+
17
+
### Changed
18
+
19
+
- BREAKING: This unfortunately means that some properties of the route response model, due to how the OpenAPI generator handles these models (it does not know how to generate variant models yet).
20
+
- BREAKING: Renamed models containing Valhalla and Pelias in their names to be generic. These now have rout(e|ing) or geocod(e|ing) prefixes.
21
+
- BREAKING: Removed one layer of nesting in the API namespace.
22
+
- Switched to [OpenAPI Generator](https://openapi-generator.tech/docs/generators/kotlin/) as the previous plugin appears to be abandoned.
23
+
24
+
### Migration notes
25
+
26
+
#### Imports
27
+
28
+
API imports have changed slightly, removing one level of nesting.
29
+
Simply remove the `apis` package from the path like so:
30
+
31
+
```diff
32
+
- import com.stadiamaps.api.apis.GeocodingApi
33
+
+ import com.stadiamaps.api.GeocodingApi
34
+
```
35
+
36
+
#### Renamed types
37
+
38
+
Several geocoding and routing types have been renamed to reflect their purpose better.
39
+
All types beginning with `Pelias` (e.g. `PeliasLayer`) now have a `Geocoding` prefix (e.g. `GeocodingLayer`).
40
+
Similarly, all types with a `Valhalla` prefix (e.g. `ValhallaLanguage`) now have a `Routing` prefix (e.g. `RoutingLanguage`).
41
+
42
+
#### Routing API model changes
43
+
44
+
Some properties of `Route200Response` are now optional.
45
+
This is due to a bug in the OpenAPI generator for Kotlin,
46
+
which coalesces all properties into a single model rather than having two variations on the model based on format.
47
+
When requesting a route with navigation aids (`format = RouteRequest.Format.osrm`),
48
+
the `routes` property will contain the enhanced route information.
49
+
Existing code using the original compact format will continue using the `trip` property.
50
+
When you receive a successful response, your code can safely use the nun-null assertion operator (`!!`).
0 commit comments