Skip to content

Commit e3f839b

Browse files
committed
added exclude unpaved and cash only tolls options
1 parent 1039e2c commit e3f839b

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Mapbox welcomes participation and contributions from everyone.
44

55
### main
6+
- Added `EXCLUDE_CASH_ONLY_TOLLS`([#1309](https://github.com/mapbox/mapbox-java/issues/1309)) and `EXCLUDE_UNPAVED`([#1308](https://github.com/mapbox/mapbox-java/issues/1308)) options to `DirectionsCriteria`
67

78
### v6.1.0 - November 11, 2021
89
- Added `avoid_maneuver_radius` to Directions API params and `avoidManeuverRadius` to `RouteOptions`. [#1310](https://github.com/mapbox/mapbox-java/pull/1310)

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,16 @@ public final class DirectionsCriteria {
178178
*/
179179
public static final String EXCLUDE_RESTRICTED = "restricted";
180180

181+
/**
182+
* Exclude all cash only tolls along the returned directions route.
183+
*/
184+
public static final String EXCLUDE_CASH_ONLY_TOLLS = "cash_only_tolls";
185+
186+
/**
187+
* Exclude all unpaved roads along the returned directions route.
188+
*/
189+
public static final String EXCLUDE_UNPAVED = "unpaved";
190+
181191
/**
182192
* A road type that requires a minimum of two vehicle occupants.
183193
*/
@@ -335,7 +345,9 @@ private DirectionsCriteria() {
335345
EXCLUDE_MOTORWAY,
336346
EXCLUDE_TOLL,
337347
EXCLUDE_TUNNEL,
338-
EXCLUDE_RESTRICTED
348+
EXCLUDE_RESTRICTED,
349+
EXCLUDE_CASH_ONLY_TOLLS,
350+
EXCLUDE_UNPAVED
339351
})
340352
public @interface ExcludeCriteria {
341353
}

0 commit comments

Comments
 (0)