Class

MapboxProvider

mapsindoors.directions.MapboxProvider(accessToken)

Constructor

# new MapboxProvider(accessToken)

MapsIndoors external directions provider for Mapbox.
Parameters:
Name Type Description
accessToken string The Mapbox access token.

Members

Array:.<string:>

# static availableTravelModes

An array of supported travel modes.

Methods

# getDistanceMatrix(args) → {DistanceMatrixResult}

Returns a matrix with distance and duration for routes from all origins to all destinations.
Parameters:
Name Type Description
args Object
origins Array:.<LatLng:>
destinations Array:.<LatLng:>
travelMode string

# getRoute(args) → {DirectionsProviderResult}

Returns a route between two locations.
Parameters:
Name Type Description
args *
DirectionsProviderResult