类 DirectionsCriteria
java.lang.Object
ai.nextbillion.kits.directions.DirectionsCriteria
Constants and properties used to customize the directions request.
-
嵌套类概要
嵌套类修饰符和类型类说明static @interfaceRetention policy for the various direction annotations.static @interfaceRetention policy for the approaches parameter in the MapMatching and Directions API.static @interfaceRetention policy for the destination parameter in the Optimization API.static @interfaceRetention policy for the various direction exclusions.static @interfaceRetention policy for the various direction geometries.static @interfaceRetention policy for the various direction overviews.static @interfaceRetention policy for the various direction profiles.static @interfaceRetention policy for the source parameter in the Optimization API.static @interfaceRetention policy for the various units of measurements. -
字段概要
字段修饰符和类型字段说明static final StringThe closure of sections of a route.static final StringThe congestion, provided as a String, between each pair of coordinates.static final StringThe distance, in meters, between each pair of coordinates.static final StringThe duration, in seconds, between each pair of coordinates.static final StringThe posted speed limit, between each pair of coordinates.static final StringThe speed, in km/h, between each pair of coordinates.static final StringThe route will be returned so that on arrival, the waypoint will be found on the side that corresponds with the driving_side of the region in which the returned route is located.static final StringThe routes can approach waypoints from either side of the road.static final StringReturned route ends at any of the provided coordinate in the list.static final StringReturned route ends at the last provided coordinate in the list.static final StringExclude all ferries along the returned directions route.static final StringExclude all motorways along the returned directions route.static final StringExclude all roads with access restrictions along the returned directions route.static final StringExclude all tolls along the returned directions route.static final StringExclude all tunnels along the returned directions route.static final StringFormat to return route geometry will be an encoded polyline.static final StringFormat to return route geometry will be an encoded polyline with precision 6.static final StringChange the units to imperial for voice and visual information.static final StringChange the units to metric for voice and visual information.static final StringNo overview geometry.static final StringThe most detailed geometry available.static final StringA simplified version of theOVERVIEW_FULLgeometry.static final StringFor bicycle routing.static final StringNbmap default username.static final StringFor car and motorcycle routing.static final StringFor car and motorcycle routing.static final StringFor pedestrian and hiking routing.static final StringReturned route starts at any of the provided coordinate in the list.static final StringReturned route starts at the first provided coordinate in the list. -
方法概要
-
字段详细资料
-
PROFILE_DEFAULT_USER
Nbmap default username.- 另请参阅:
-
PROFILE_DRIVING_TRAFFIC
For car and motorcycle routing. This profile factors in current and historic traffic conditions to avoid slowdowns.- 另请参阅:
-
PROFILE_DRIVING
For car and motorcycle routing. This profile shows the fastest routes by preferring high-speed roads like highways.- 另请参阅:
-
PROFILE_WALKING
For pedestrian and hiking routing. This profile shows the shortest path by using sidewalks and trails.- 另请参阅:
-
PROFILE_CYCLING
For bicycle routing. This profile shows routes that are short and safe for cyclist, avoiding highways and preferring streets with bike lanes.- 另请参阅:
-
GEOMETRY_POLYLINE
Format to return route geometry will be an encoded polyline.- 另请参阅:
-
GEOMETRY_POLYLINE6
Format to return route geometry will be an encoded polyline with precision 6.- 另请参阅:
-
OVERVIEW_SIMPLIFIED
A simplified version of theOVERVIEW_FULLgeometry. If not specified simplified is the default.- 另请参阅:
-
OVERVIEW_FULL
The most detailed geometry available.- 另请参阅:
-
OVERVIEW_FALSE
No overview geometry.- 另请参阅:
-
ANNOTATION_DURATION
The duration, in seconds, between each pair of coordinates.- 另请参阅:
-
ANNOTATION_DISTANCE
The distance, in meters, between each pair of coordinates.- 另请参阅:
-
ANNOTATION_SPEED
The speed, in km/h, between each pair of coordinates.- 另请参阅:
-
ANNOTATION_CONGESTION
The congestion, provided as a String, between each pair of coordinates.- 另请参阅:
-
ANNOTATION_MAXSPEED
The posted speed limit, between each pair of coordinates.- 另请参阅:
-
ANNOTATION_CLOSURE
The closure of sections of a route.- 另请参阅:
-
EXCLUDE_TOLL
Exclude all tolls along the returned directions route.- 另请参阅:
-
EXCLUDE_MOTORWAY
Exclude all motorways along the returned directions route.- 另请参阅:
-
EXCLUDE_FERRY
Exclude all ferries along the returned directions route.- 另请参阅:
-
EXCLUDE_TUNNEL
Exclude all tunnels along the returned directions route.- 另请参阅:
-
EXCLUDE_RESTRICTED
Exclude all roads with access restrictions along the returned directions route.- 另请参阅:
-
IMPERIAL
Change the units to imperial for voice and visual information. Note that this won't change other results such as raw distance measurements which will always be returned in meters.- 另请参阅:
-
METRIC
Change the units to metric for voice and visual information. Note that this won't change other results such as raw distance measurements which will always be returned in meters.- 另请参阅:
-
SOURCE_FIRST
Returned route starts at the first provided coordinate in the list. Used specifically for the Optimization API.- 另请参阅:
-
SOURCE_ANY
Returned route starts at any of the provided coordinate in the list. Used specifically for the Optimization API.- 另请参阅:
-
DESTINATION_ANY
Returned route ends at any of the provided coordinate in the list. Used specifically for the Optimization API.- 另请参阅:
-
DESTINATION_LAST
Returned route ends at the last provided coordinate in the list. Used specifically for the Optimization API.- 另请参阅:
-
APPROACH_UNRESTRICTED
The routes can approach waypoints from either side of the road.Used in MapMatching and Directions API.
- 另请参阅:
-
APPROACH_CURB
The route will be returned so that on arrival, the waypoint will be found on the side that corresponds with the driving_side of the region in which the returned route is located.Used in MapMatching and Directions API.
- 另请参阅:
-