Skip to main content

interface

CarRouteOptions

Car route method options.

Properties

points

Point[]

Array of geographical points [longitude, latitude].

You can set up to 10 points.

style?

Additional styles for route

DirectionResult

Result of search for car or pedestrian routing direction.

Properties

algorithm?

string

begin_pedestrian_path?

PedestrianPath

end_pedestrian_path?

PedestrianPath

filter_road_types?

DirectionRoadType[]

id

string

maneuvers?

Maneuver[]

requested_filters?

DirectionRoadType[]

result_filters?

DirectionRoadType[]

route_id

string

total_distance

number

total_duration

number

type

"carrouting"|"pedestrianrouting"

ui_total_distance

ui_total_duration

string

waypoints

WayPoint[]

DirectionsEventTable

The list of events that can be emitted by a Directions instance.

Properties

directionsLoaded

Emitted when directions is loaded.

DirectionsLoadedEvent

Properties

routes

DirectionResult[]

DirectionsOptions

Directions initialization options.

Properties

directionsApiKey

string

Directions API access key.

PedestrianRouteOptions

Pedestrian route method options.

Properties

points

Point[]

Array of geographical points [longitude, latitude].

You can set up to 10 points.

style?

Additional styles for route

RouteStyle

Properties

haloLineWidth?

Route halo width. Will be rendered under substrate

routeLineWidth?

Route line width, represents route

substrateLineWidth?

Route substrate width. Will be rendered under route

UITotalDistance

UI total distance presentation

Properties

unit

string

value

string