@@ -946,6 +946,40 @@ public List<String> paymentMethodsList() {
946
946
@ Nullable
947
947
public abstract Boolean suppressVoiceInstructionLocalNames ();
948
948
949
+ /**
950
+ * Defines whether to return "form of way" values for roads at each {@link StepIntersection}.
951
+ * See {@link StepIntersection#formOfWays()} for details.
952
+ *
953
+ * @return boolean representing the `intersectionLinkFormOfWay` value
954
+ */
955
+ @ SerializedName ("intersection_link_form_of_way" )
956
+ @ Nullable
957
+ public abstract Boolean intersectionLinkFormOfWay ();
958
+
959
+ /**
960
+ * A comma-separated list of road types for which intersection geometry data should be included
961
+ * at each {@link StepIntersection}. See {@link StepIntersection#geometries()} for details.
962
+ * Possible values include:
963
+ * - "motorway"
964
+ * - "trunk"
965
+ * - "primary"
966
+ * - "secondary"
967
+ * - "tertiary"
968
+ * - "unclassified"
969
+ * - "residential"
970
+ * - "service_other"
971
+ * Geometry data will be provided for each intersection along the requested route.
972
+ * Be aware that enabling this option can significantly increase the response size
973
+ * and the memory required to store the response object. Use this option selectively, for example,
974
+ * if geometry is only needed for motorways, specify only "motorway".
975
+ *
976
+ * @return a comma-separated list of road types for which intersection geometry data
977
+ * should be included
978
+ */
979
+ @ SerializedName ("intersection_link_geometry" )
980
+ @ Nullable
981
+ public abstract String intersectionLinkGeometry ();
982
+
949
983
/**
950
984
* Gson type adapter for parsing Gson to this class.
951
985
*
@@ -1088,6 +1122,8 @@ public URL toUrl(@NonNull String accessToken) {
1088
1122
"suppress_voice_instruction_local_names" ,
1089
1123
suppressVoiceInstructionLocalNames ()
1090
1124
);
1125
+ appendQueryParameter (sb , "intersection_link_form_of_way" , intersectionLinkFormOfWay ());
1126
+ appendQueryParameter (sb , "intersection_link_geometry" , intersectionLinkGeometry ());
1091
1127
1092
1128
Map <String , SerializableJsonElement > unrecognized = unrecognized ();
1093
1129
if (unrecognized != null ) {
@@ -2127,6 +2163,71 @@ public abstract Builder suppressVoiceInstructionLocalNames(
2127
2163
@ Nullable Boolean suppressVoiceInstructionLocalNames
2128
2164
);
2129
2165
2166
+ /**
2167
+ * Defines whether to return "form of way" values for roads at each {@link StepIntersection}.
2168
+ * See {@link StepIntersection#formOfWays()} for details.
2169
+ *
2170
+ * @param intersectionLinkFormOfWay whether to return "form of way" values
2171
+ * @return this builder
2172
+ */
2173
+ @ NonNull
2174
+ public abstract Builder intersectionLinkFormOfWay (
2175
+ @ Nullable Boolean intersectionLinkFormOfWay
2176
+ );
2177
+
2178
+ /**
2179
+ * A comma-separated list of road types for which intersection geometry data should be included
2180
+ * at each {@link StepIntersection}. See {@link StepIntersection#geometries()} for details.
2181
+ * Possible values include:
2182
+ * - "motorway"
2183
+ * - "trunk"
2184
+ * - "primary"
2185
+ * - "secondary"
2186
+ * - "tertiary"
2187
+ * - "unclassified"
2188
+ * - "residential"
2189
+ * - "service_other"
2190
+ * Geometry data will be provided for each intersection along the requested route.
2191
+ * Be aware that enabling this option can significantly increase the response size
2192
+ * and the memory required to store the response object. Use this option selectively,
2193
+ * for example, if geometry is only needed for motorways, specify only "motorway".
2194
+ *
2195
+ * @param intersectionLinkGeometry a comma-separated list of road types for which intersection
2196
+ * geometry data should be included
2197
+ * @return this builder
2198
+ */
2199
+ @ NonNull
2200
+ public abstract Builder intersectionLinkGeometry (
2201
+ @ Nullable String intersectionLinkGeometry
2202
+ );
2203
+
2204
+ /**
2205
+ * A list of road types for which intersection geometry data should be included
2206
+ * at each {@link StepIntersection}. See {@link StepIntersection#geometries()} for details.
2207
+ * Possible values include:
2208
+ * - "motorway"
2209
+ * - "trunk"
2210
+ * - "primary"
2211
+ * - "secondary"
2212
+ * - "tertiary"
2213
+ * - "unclassified"
2214
+ * - "residential"
2215
+ * - "service_other"
2216
+ * Geometry data will be provided for each intersection along the requested route.
2217
+ * Be aware that enabling this option can significantly increase the response size
2218
+ * and the memory required to store the response object. Use this option selectively,
2219
+ * for example, if geometry is only needed for motorways, specify only "motorway".
2220
+ *
2221
+ * @param intersectionLinkGeometry a list of road types for which intersection geometry data
2222
+ * should be included
2223
+ * @return this builder
2224
+ */
2225
+ @ NonNull
2226
+ public Builder intersectionLinkGeometry (@ Nullable List <String > intersectionLinkGeometry ) {
2227
+ String result = FormatUtils .join ("," , intersectionLinkGeometry );
2228
+ return intersectionLinkGeometry (result );
2229
+ }
2230
+
2130
2231
/**
2131
2232
* Use this method to add request parameters,
2132
2233
* which are not present in the model yet but are supported on the Directions API,
0 commit comments