类 DirectionsCriteria

java.lang.Object
ai.nextbillion.kits.directions.DirectionsCriteria

public final class DirectionsCriteria extends Object
Constants and properties used to customize the directions request.
  • 字段详细资料

    • PROFILE_DEFAULT_USER

      public static final String PROFILE_DEFAULT_USER
      Nbmap default username.
      另请参阅:
    • PROFILE_DRIVING_TRAFFIC

      public static final String PROFILE_DRIVING_TRAFFIC
      For car and motorcycle routing. This profile factors in current and historic traffic conditions to avoid slowdowns.
      另请参阅:
    • PROFILE_DRIVING

      public static final String PROFILE_DRIVING
      For car and motorcycle routing. This profile shows the fastest routes by preferring high-speed roads like highways.
      另请参阅:
    • PROFILE_WALKING

      public static final String PROFILE_WALKING
      For pedestrian and hiking routing. This profile shows the shortest path by using sidewalks and trails.
      另请参阅:
    • PROFILE_CYCLING

      public static final String 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

      public static final String GEOMETRY_POLYLINE
      Format to return route geometry will be an encoded polyline.
      另请参阅:
    • GEOMETRY_POLYLINE6

      public static final String GEOMETRY_POLYLINE6
      Format to return route geometry will be an encoded polyline with precision 6.
      另请参阅:
    • OVERVIEW_SIMPLIFIED

      public static final String OVERVIEW_SIMPLIFIED
      A simplified version of the OVERVIEW_FULL geometry. If not specified simplified is the default.
      另请参阅:
    • OVERVIEW_FULL

      public static final String OVERVIEW_FULL
      The most detailed geometry available.
      另请参阅:
    • OVERVIEW_FALSE

      public static final String OVERVIEW_FALSE
      No overview geometry.
      另请参阅:
    • ANNOTATION_DURATION

      public static final String ANNOTATION_DURATION
      The duration, in seconds, between each pair of coordinates.
      另请参阅:
    • ANNOTATION_DISTANCE

      public static final String ANNOTATION_DISTANCE
      The distance, in meters, between each pair of coordinates.
      另请参阅:
    • ANNOTATION_SPEED

      public static final String ANNOTATION_SPEED
      The speed, in km/h, between each pair of coordinates.
      另请参阅:
    • ANNOTATION_CONGESTION

      public static final String ANNOTATION_CONGESTION
      The congestion, provided as a String, between each pair of coordinates.
      另请参阅:
    • ANNOTATION_MAXSPEED

      public static final String ANNOTATION_MAXSPEED
      The posted speed limit, between each pair of coordinates.
      另请参阅:
    • ANNOTATION_CLOSURE

      public static final String ANNOTATION_CLOSURE
      The closure of sections of a route.
      另请参阅:
    • EXCLUDE_TOLL

      public static final String EXCLUDE_TOLL
      Exclude all tolls along the returned directions route.
      另请参阅:
    • EXCLUDE_MOTORWAY

      public static final String EXCLUDE_MOTORWAY
      Exclude all motorways along the returned directions route.
      另请参阅:
    • EXCLUDE_FERRY

      public static final String EXCLUDE_FERRY
      Exclude all ferries along the returned directions route.
      另请参阅:
    • EXCLUDE_TUNNEL

      public static final String EXCLUDE_TUNNEL
      Exclude all tunnels along the returned directions route.
      另请参阅:
    • EXCLUDE_RESTRICTED

      public static final String EXCLUDE_RESTRICTED
      Exclude all roads with access restrictions along the returned directions route.
      另请参阅:
    • IMPERIAL

      public static final String 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

      public static final String 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

      public static final String SOURCE_FIRST
      Returned route starts at the first provided coordinate in the list. Used specifically for the Optimization API.
      另请参阅:
    • SOURCE_ANY

      public static final String SOURCE_ANY
      Returned route starts at any of the provided coordinate in the list. Used specifically for the Optimization API.
      另请参阅:
    • DESTINATION_ANY

      public static final String DESTINATION_ANY
      Returned route ends at any of the provided coordinate in the list. Used specifically for the Optimization API.
      另请参阅:
    • DESTINATION_LAST

      public static final String DESTINATION_LAST
      Returned route ends at the last provided coordinate in the list. Used specifically for the Optimization API.
      另请参阅:
    • APPROACH_UNRESTRICTED

      public static final String APPROACH_UNRESTRICTED
      The routes can approach waypoints from either side of the road.

      Used in MapMatching and Directions API.

      另请参阅:
    • APPROACH_CURB

      public static final String 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.

      另请参阅: