File tree Expand file tree Collapse file tree
services-directions/src/main/java/com/mapbox/api/directions/v5 Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments