GET /truck/directions.{outputFormat}
Operation ID: —
Auth: unknown
Description
Represents the turn-by-turn directions, geometry, distance, and time of the shortest path or fastest path between given start and end points for a commercial vehicle
Parameters (12)
(boolean, query, optional, default: False)
If true, route starts and ends on same side of road as start/end point.Default is false.
(string, query, optional, default: shortest)
Routing criteria to optimize (e.g., shortest, fastest). Default is shortest.
Constraints: {'enum': ['shortest', 'fastest']}
(string, query, optional)
departure date and time in internet timestamp notation as defined in RFC 3339, section 5.6 (e.g., 2019-02-28T11:36:00-08:00);<br> Ignored if time-dependency modules are disabled
(string, query, optional, default: sc,tf,ev,td)
A comma-separated list of time-related modules to disable (e.g., sc,tf,ev,td).<br><br>Module names include:<br> sc – ferry schedules; disabled by default; disabled by default and only suitable for demos<br>tf – historic traffic congestion; disabled by default and only suitable for demos<br>ev – road events; disabled by default and only suitable for demos<br>td – time-dependency; disabling this disables sc, tf, and ev modules<br>tr – turn restrictions; if td is disabled, time-dependent turn restrictions are ignored<br>tc - turn costs (e.g., left turns take longer than right turns)
(string, query, optional, default: km)
distance unit of measure (e.g., km, mi). Default is km.
Constraints: {'enum': ['km', 'mi']}
(string, path, required, default: json)
Format of representation
Constraints: {'enum': ['json', 'kml', 'html']}
(integer, query, optional, default: 4326)
The EPSG code of the spatial reference system (SRS) to use for output geometries. See <a href=https://github.com/bcgov/ols-router/blob/gh-pages/glossary.md#outputSRS target="_blank">outputSRS</a>
Constraints: {'enum': [4326, 4269, 3005, 26907, 26908, 26909, 26910, 26911]}
(string, query, optional)
A comma-separated list of values to identify sections of the route that correspond to truck route sections and non-truck route sections, ferry sections and non-ferry sections, and locality names. The response includes a partitions attribute, which is an array of objects, each of which has an index (into the route coordinate array) and a value for each of the attributes requested in the partition parameter. Any or all of the following values can be used. <br><br>Partition values:<br> isTruckRoute – Distinguish between truck route sections and non-truck route sections <br> isFerry – Distinguish between ferry sections and non-ferry sections <br> locality – Include the locality name for the route partition
(string, query, required)
A list of any number of route points in start to end order. See <a href=https://github.com/bcgov/ols-router/blob/gh-pages/glossary.md#points target='_blank'>points</a>
(boolean, query, optional, default: False)
If true, route ends at start point. Default is false.
(string, query, optional, default: Routing results)
Route description (e.g., Shortest route from 1002 Johnson St, Victoria to 1105 Royal Ave,New Westminster)
(integer, query, optional, default: 9)
The truck route multiplier value is used to multiply the cost of using roads that are not truck routes.
No probe data for this endpoint yet.