Skip to content

Commit 98926a7

Browse files
authored
added tunnel and restricted to possible values of exclude criteria
1 parent 751d544 commit 98926a7

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

services-directions/src/main/java/com/mapbox/api/directions/v5/DirectionsCriteria.java

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,20 @@ public final class DirectionsCriteria {
136136
*/
137137
public static final String EXCLUDE_FERRY = "ferry";
138138

139+
/**
140+
* Exclude all tunnels along the returned directions route.
141+
*
142+
* @since 3.0.0
143+
*/
144+
public static final String EXCLUDE_TUNNEL = "tunnel";
145+
146+
/**
147+
* Exclude all roads with access restrictions along the returned directions route.
148+
*
149+
* @since 3.0.0
150+
*/
151+
public static final String EXCLUDE_RESTRICTED = "restricted";
152+
139153
/**
140154
* Change the units to imperial for voice and visual information. Note that this won't change
141155
* other results such as raw distance measurements which will always be returned in meters.
@@ -255,7 +269,9 @@ private DirectionsCriteria() {
255269
@StringDef( {
256270
EXCLUDE_FERRY,
257271
EXCLUDE_MOTORWAY,
258-
EXCLUDE_TOLL
272+
EXCLUDE_TOLL,
273+
EXCLUDE_TUNNEL,
274+
EXCLUDE_RESTRICTED
259275
})
260276
public @interface ExcludeCriteria {
261277
}

0 commit comments

Comments
 (0)