Skip to content

Commit 79bceaf

Browse files
committed
Upgrade to MOTIS 2.7.4
1 parent 98493bc commit 79bceaf

File tree

9 files changed

+495
-16
lines changed

9 files changed

+495
-16
lines changed

.openapi-generator/FILES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ src/main/java/dev/bileto/motis/client/model/Leg.java
3636
src/main/java/dev/bileto/motis/client/model/LocationType.java
3737
src/main/java/dev/bileto/motis/client/model/Match.java
3838
src/main/java/dev/bileto/motis/client/model/Mode.java
39+
src/main/java/dev/bileto/motis/client/model/OneToManyParams.java
3940
src/main/java/dev/bileto/motis/client/model/PedestrianProfile.java
4041
src/main/java/dev/bileto/motis/client/model/PickupDropoffType.java
4142
src/main/java/dev/bileto/motis/client/model/Place.java

ext/motis

Submodule motis updated 63 files

src/main/java/dev/bileto/motis/client/api/GeocodeApi.java

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import dev.bileto.motis.client.model.Error;
77
import dev.bileto.motis.client.model.LocationType;
88
import dev.bileto.motis.client.model.Match;
9+
import dev.bileto.motis.client.model.Mode;
910

1011
import java.util.HashMap;
1112
import java.util.List;
@@ -57,12 +58,13 @@ public void setApiClient(ApiClient apiClient) {
5758
* @param text the (potentially partially typed) address to resolve
5859
* @param language language tags as used in OpenStreetMap (usually ISO 639-1, or ISO 639-2 if there's no ISO 639-1)
5960
* @param type Optional. Default is all types. Only return results of the given types. For example, this can be used to allow only `ADDRESS` and `STOP` results.
61+
* @param mode Optional. Filter stops by available transport modes. Defaults to applying no filter.
6062
* @param place Optional. Used for biasing results towards the coordinate. Format: latitude,longitude in degrees
6163
* @param placeBias Optional. Used for biasing results towards the coordinate. Higher number = higher bias.
6264
* @return List<Match>
6365
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
6466
*/
65-
private ResponseSpec geocodeRequestCreation(@jakarta.annotation.Nonnull String text, @jakarta.annotation.Nullable List<String> language, @jakarta.annotation.Nullable LocationType type, @jakarta.annotation.Nullable String place, @jakarta.annotation.Nullable BigDecimal placeBias) throws WebClientResponseException {
67+
private ResponseSpec geocodeRequestCreation(@jakarta.annotation.Nonnull String text, @jakarta.annotation.Nullable List<String> language, @jakarta.annotation.Nullable LocationType type, @jakarta.annotation.Nullable List<Mode> mode, @jakarta.annotation.Nullable String place, @jakarta.annotation.Nullable BigDecimal placeBias) throws WebClientResponseException {
6668
Object postBody = null;
6769
// verify the required parameter 'text' is set
6870
if (text == null) {
@@ -79,6 +81,7 @@ private ResponseSpec geocodeRequestCreation(@jakarta.annotation.Nonnull String t
7981
queryParams.putAll(apiClient.parameterToMultiValueMap(null, "text", text));
8082
queryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), "language", language));
8183
queryParams.putAll(apiClient.parameterToMultiValueMap(null, "type", type));
84+
queryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), "mode", mode));
8285
queryParams.putAll(apiClient.parameterToMultiValueMap(null, "place", place));
8386
queryParams.putAll(apiClient.parameterToMultiValueMap(null, "placeBias", placeBias));
8487

@@ -103,14 +106,15 @@ private ResponseSpec geocodeRequestCreation(@jakarta.annotation.Nonnull String t
103106
* @param text the (potentially partially typed) address to resolve
104107
* @param language language tags as used in OpenStreetMap (usually ISO 639-1, or ISO 639-2 if there&#39;s no ISO 639-1)
105108
* @param type Optional. Default is all types. Only return results of the given types. For example, this can be used to allow only &#x60;ADDRESS&#x60; and &#x60;STOP&#x60; results.
109+
* @param mode Optional. Filter stops by available transport modes. Defaults to applying no filter.
106110
* @param place Optional. Used for biasing results towards the coordinate. Format: latitude,longitude in degrees
107111
* @param placeBias Optional. Used for biasing results towards the coordinate. Higher number &#x3D; higher bias.
108112
* @return List&lt;Match&gt;
109113
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
110114
*/
111-
public List<Match> geocode(@jakarta.annotation.Nonnull String text, @jakarta.annotation.Nullable List<String> language, @jakarta.annotation.Nullable LocationType type, @jakarta.annotation.Nullable String place, @jakarta.annotation.Nullable BigDecimal placeBias) throws WebClientResponseException {
115+
public List<Match> geocode(@jakarta.annotation.Nonnull String text, @jakarta.annotation.Nullable List<String> language, @jakarta.annotation.Nullable LocationType type, @jakarta.annotation.Nullable List<Mode> mode, @jakarta.annotation.Nullable String place, @jakarta.annotation.Nullable BigDecimal placeBias) throws WebClientResponseException {
112116
ParameterizedTypeReference<Match> localVarReturnType = new ParameterizedTypeReference<Match>() {};
113-
return geocodeRequestCreation(text, language, type, place, placeBias).bodyToFlux(localVarReturnType).collectList().block();
117+
return geocodeRequestCreation(text, language, type, mode, place, placeBias).bodyToFlux(localVarReturnType).collectList().block();
114118
}
115119

116120
/**
@@ -121,14 +125,15 @@ public List<Match> geocode(@jakarta.annotation.Nonnull String text, @jakarta.ann
121125
* @param text the (potentially partially typed) address to resolve
122126
* @param language language tags as used in OpenStreetMap (usually ISO 639-1, or ISO 639-2 if there&#39;s no ISO 639-1)
123127
* @param type Optional. Default is all types. Only return results of the given types. For example, this can be used to allow only &#x60;ADDRESS&#x60; and &#x60;STOP&#x60; results.
128+
* @param mode Optional. Filter stops by available transport modes. Defaults to applying no filter.
124129
* @param place Optional. Used for biasing results towards the coordinate. Format: latitude,longitude in degrees
125130
* @param placeBias Optional. Used for biasing results towards the coordinate. Higher number &#x3D; higher bias.
126131
* @return ResponseEntity&lt;List&lt;Match&gt;&gt;
127132
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
128133
*/
129-
public ResponseEntity<List<Match>> geocodeWithHttpInfo(@jakarta.annotation.Nonnull String text, @jakarta.annotation.Nullable List<String> language, @jakarta.annotation.Nullable LocationType type, @jakarta.annotation.Nullable String place, @jakarta.annotation.Nullable BigDecimal placeBias) throws WebClientResponseException {
134+
public ResponseEntity<List<Match>> geocodeWithHttpInfo(@jakarta.annotation.Nonnull String text, @jakarta.annotation.Nullable List<String> language, @jakarta.annotation.Nullable LocationType type, @jakarta.annotation.Nullable List<Mode> mode, @jakarta.annotation.Nullable String place, @jakarta.annotation.Nullable BigDecimal placeBias) throws WebClientResponseException {
130135
ParameterizedTypeReference<Match> localVarReturnType = new ParameterizedTypeReference<Match>() {};
131-
return geocodeRequestCreation(text, language, type, place, placeBias).toEntityList(localVarReturnType).block();
136+
return geocodeRequestCreation(text, language, type, mode, place, placeBias).toEntityList(localVarReturnType).block();
132137
}
133138

134139
/**
@@ -139,13 +144,14 @@ public ResponseEntity<List<Match>> geocodeWithHttpInfo(@jakarta.annotation.Nonnu
139144
* @param text the (potentially partially typed) address to resolve
140145
* @param language language tags as used in OpenStreetMap (usually ISO 639-1, or ISO 639-2 if there&#39;s no ISO 639-1)
141146
* @param type Optional. Default is all types. Only return results of the given types. For example, this can be used to allow only &#x60;ADDRESS&#x60; and &#x60;STOP&#x60; results.
147+
* @param mode Optional. Filter stops by available transport modes. Defaults to applying no filter.
142148
* @param place Optional. Used for biasing results towards the coordinate. Format: latitude,longitude in degrees
143149
* @param placeBias Optional. Used for biasing results towards the coordinate. Higher number &#x3D; higher bias.
144150
* @return ResponseSpec
145151
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
146152
*/
147-
public ResponseSpec geocodeWithResponseSpec(@jakarta.annotation.Nonnull String text, @jakarta.annotation.Nullable List<String> language, @jakarta.annotation.Nullable LocationType type, @jakarta.annotation.Nullable String place, @jakarta.annotation.Nullable BigDecimal placeBias) throws WebClientResponseException {
148-
return geocodeRequestCreation(text, language, type, place, placeBias);
153+
public ResponseSpec geocodeWithResponseSpec(@jakarta.annotation.Nonnull String text, @jakarta.annotation.Nullable List<String> language, @jakarta.annotation.Nullable LocationType type, @jakarta.annotation.Nullable List<Mode> mode, @jakarta.annotation.Nullable String place, @jakarta.annotation.Nullable BigDecimal placeBias) throws WebClientResponseException {
154+
return geocodeRequestCreation(text, language, type, mode, place, placeBias);
149155
}
150156

151157
/**

0 commit comments

Comments
 (0)