Skip to content

directions

directions(profile, waypoints, o): Promise<DirectionsResponse>

Routing (Mapbox-Directions-Antwort, Geometrie als GeoJSON). Profile: driving, driving-traffic, driving-truck, cycling, cycling-mtb, walking.

Parameters

• profile: Profile

• waypoints: LL[]

• o: DirectionsOptions = {}

Returns

Promise<DirectionsResponse>