Query Parameters
Parameter | Description | Usage |
---|---|---|
startPoint | Specifies the starting location of the route. Point format: longitude,latitude,srs Example format: '– 77.5,38.8,epsg:4326'. |
Required |
endPoint | Specifies the ending location of the route. Point format: longitude,latitude,srs Example format: '– 79.5,38.8,epsg:4326'. |
Required |
db | Specifies the mode of commute. Possible Values: driving and walking Default: driving |
Optional |
intermediatePoints | Specifies the list of intermediate points. Upto 25 comma-separated values are
supported. For example: '-74.2,40.8,-73,42,epsg:4326' |
Optional |
returnIntermediatePoints | Whether to return the intermediate points with the route response | Optional |
directionsStyle | Specifies whether route directions text is to be returned. Possible values: 'None', 'Normal' and 'Terse'. None: No directions returned. Default, if not specified. Normal: Directions are returned in a full format. Terse: Directions are returned in a short format. Default: 'None' |
Optional |
segmentGeometryStyle | Specifies whether or not the geometry of complete route is returned in the
response. Possible values: 'none', 'end', 'all' Default: 'none' Note: Only segment end points in 'end' value and all
shape points of segment if value specified is 'all'.
|
Optional |
oip | Specifies whether the waypoints need to be optimized or the
default order must be kept while route calculation. Possible values: 'true' or 'false' Default: 'false' |
Optional |
optimizeBy | Specifies the type of optimizing to be used for the route.
Possible values: 'time' or 'distance' Default: 'time' |
Optional |
returnDistance | Specifies whether or not the distance is to be sent back in response with route
direction text. Possible values: 'true' or 'false' Default: 'true' |
Optional |
distanceUnit |
Specifies unit to return distance. Available values are:
Default: 'm' |
Optional |
returnTime | Specifies whether or not time is to be sent back in response with route direction
text. Possible values: 'true' or 'false' Default: 'true' |
Optional |
timeUnit |
Specifies unit to return time. Available values are:
Default: 'min' |
Optional |
language | Specifies the travel directions in specified languages. Default: English (en) Available languages are:
Note: Is applicable when the directionStyle is set as 'Normal'
or 'Trese'. |
Optional |
primaryNameOnly | If 'true' then only the primary street name is returned otherwise
all the names for a street are returned. Possible values: 'true' or 'false' Default: 'false' |
Optional |
majorRoads | Specifies whether to include all roads in the calculation or just
major roads. If 'true' then only the major roads are included that
result in performance increase but reduced accuracy. Possible values: 'true' or 'false' Default: 'false' |
Optional |
destinationSrs | Specifies the desired coordinate system of the returned routes.
Default: Coordinate system of the network data, for example: epsg:4326 |
Optional |
historicTrafficTimeBucket |
Specifies whether the routing calculation uses the historic traffic speeds. These speeds are based on different time-of-day buckets. The data must have historic traffic speeds included in order to use this feature. The data for each country/region has the same bucket definitions, where the speeds for these bucket values may vary. The options are: None The default value. Historic traffic data is not used in the calculation. Instead an averaged speed value is used. AMPeak Calculate routes with the peak AM speeds. The AMPeak time bucket is from 07:00 to 10:00hr time of day. PMPeak Calculate routes with the peak PM speeds. The PMPeak time bucket is from 16:00 to 19:00hr time of day. OffPeak Calculate routes with the off peak (daytime) speeds. The OffPeak time bucket is from 10:00 to 16:00hr time of day. Night Calculate routes with the nighttime speeds. The Night time bucket is from 22:00 to 04:00 hours time of day.Note: This parameter is applicable for the following countries:
|
Optional |
returnDirectionGeometry |
Specifies whether to return a separate geometry associated with the route instruction in route response. Default: 'false' |
Optional |
useCvr | Enables or disables CVR capabilities. Allowed values are Y or N
(case sensitive). Default: 'N' |
Optional |
looseningBarrierRestrictions |
Specifies that barriers will be ignored when determining the route. These restrictions most often occur when a commercial vehicle is prohibited from traversing a segment due to local ordinance, or a commercial vehicle is allowed on the segment but only when it must (for example, last mile access, local delivery, and so on). |
Optional |
vehicleType | Choose either ALL or one of the following:
|
Optional |
weight | Specifies the maximum weight of a vehicle. Any vehicles over this value will be restricted when determining the route. | Optional |
weightUnit | Specifies the unit to be used for specifying the maximum weight
of the vehicle. The units of weights are:
|
Optional |
height | Specifies the maximum height of a vehicle. Any vehicles over this value will be restricted when determining the route. | Optional |
heightUnit | Specifies the unit to be used for specifying the maximum height
of the vehicle. The units of height are:
|
Optional |
length | Specifies the maximum length of a vehicle. Any vehicles over this value will be restricted when determining the route. | Optional |
lengthUnit | Specifies the unit to be used for specifying the maximum length
of the vehicle. The units of length are:
|
Optional |
width | Specifies the maximum width of a vehicle. Any vehicles over this value will be restricted when determining the route. | Optional |
widthUnit | Specifies the unit to be used for specifying the maximum width of
the vehicle. The units of width are:
|
Optional |