Skip to main content
New to Corsair? See API access, authentication, and error handling.

Directions

route

directions.route Get a route between 2 to 25 waypoints for driving, driving with traffic, walking or cycling, with optional steps, annotations and alternatives; throws when Mapbox finds no route Risk: read
Input Throws a MapboxAPIError with code NoRoute or NoSegment when Mapbox finds no route; it answers those with HTTP 200.
Output

Geocoding

forward

geocoding.forward Turn an address or place name into coordinates and structured address context; a query with no match returns an empty features list Risk: read
Input Searches by text; for structured address input or permanent storage, call Mapbox directly. Mapbox ignores a limit outside 1 to 10, so the plugin rejects it.
Output

reverse

geocoding.reverse Turn a longitude and latitude into the address, place or other features at that point Risk: read
Input Output

Isochrone

get

isochrone.get Get the area reachable from a point within up to four travel times or distances, as GeoJSON lines or polygons Risk: read
Input Give contours_minutes (1 to 60) or contours_meters (1 to 100000), up to four, strictly increasing. Mapbox returns the largest contour first.
Output

Matrix

calculate

matrix.calculate Get travel times, distances or both between up to 25 points (10 with traffic), as a sources by destinations table Risk: read
Input Up to 25 coordinates, or 10 for mapbox/driving-traffic. A null cell means no route between that pair.
Output

Tilequery

query

tilequery.query List the features of one or more vector tilesets at or near a point, nearest first Risk: read
Input Needs a radius for point and line data. A default token showed a limit of 50 requests a minute.
Output

Trips

optimize

trips.optimize Find the fastest order to visit 2 to 12 stops (Optimization v1, answered immediately); throws on NoSegment or an unsupported roundtrip/source/destination combination Risk: read
Input Optimization v1, answered immediately. roundtrip: false needs source: first and destination: last; Mapbox answers NotImplemented for any other pair.
Output