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 paymenttollVignette: 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 information// Request toll, ferry, and traffic sections
const sectionTypes: InputSectionTypes = ['toll', 'ferry', 'traffic'];
// Request all available sections
const sectionTypes: InputSectionTypes = inputSectionTypes;
// 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, helping you display additional context like toll roads, ferry crossings, or traffic incidents.