Available section types:
carTrain: Sections requiring car train transportferry: Water crossings requiring ferrytunnel: Underground tunnel sectionsmotorway: Highway/freeway sectionspedestrian: Pedestrian-only sectionstoll: Sections requiring toll paymenttollRoad: Toll roadstollVignette: Sections requiring toll vignettecountry: Different countries traversedtraffic: Sections with traffic incidentsvehicleRestricted: Sections with vehicle restrictionscarpool: HOV/carpool lane sectionsurban: Urban area sectionsunpaved: Unpaved road sectionslowEmissionZone: Low emission zonesspeedLimit: Speed limit changesroadShields: Road shield informationimportantRoadStretch: Named important road stretches along the routelanes: Lane guidanceA requested section type is only present in the response if the route actually traverses it
(e.g. ferry is omitted on a route with no water crossing). The lanes section is returned only
when guidance is also requested, and, when a list is given, only if it
includes lanes.
// Request toll, ferry, and traffic sections
const sectionTypes: InputSectionTypes = ['toll', 'ferry', 'traffic'];
// Request all available sections
const sectionTypes: InputSectionTypes = inputSectionTypesWithGuidance;
// Request no optional sections (leg sections still included)
const sectionTypes: InputSectionTypes = [];
Array of section types to include in the route response.
Sections divide the route into portions with specific characteristics, so you can display additional context like toll roads, ferry crossings or traffic incidents.