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

Distance

fromOrigin

distance.fromOrigin Measure driving or straight-line distance and duration from one origin to many destinations, optionally filtering and sorting by either Risk: read
Input The route accepts driving, haversine and straightline; only driving returns a duration. Output

matrix

distance.matrix Measure every origin against every destination, or pair each origin with one destination, in a single request Risk: read
Input calculation_type: pairs pairs each origin with the destination at the same position instead of crossing them. Output

Geocode

batch

geocode.batch Geocode up to 10,000 addresses in one request, answered in the order they were sent Risk: read
Input Up to 10,000 addresses in one POST, answered in order as { query, response: { results } } entries. Output

batchReverse

geocode.batchReverse Reverse geocode up to 10,000 coordinate pairs in one request, answered in the order they were sent Risk: read
Input Output

forward

geocode.forward Turn an address into coordinates, with a confidence score, the accuracy type that says how the match was made, and the parsed components. Data appends such as timezone or congressional district come back under fields Risk: read
Input Send either q or the components; fields appends data such as timezone under fields. Output

parse

geocode.parse Split an address into its components without geocoding it, so it costs no lookup Risk: read
Input Splits an address without geocoding it, so it costs no lookup. Output

reverse

geocode.reverse Turn a latitude and longitude into the nearest address, with the same confidence and components a forward lookup returns Risk: read
Input Output

Jobs

delete

jobs.delete Delete a distance job and its stored result Risk: destructive · Irreversible
Input Output

get

jobs.get Read one distance job, whose status says whether its result is ready Risk: read
Input Output

list

jobs.list List the asynchronous distance matrix jobs on the account Risk: read
Input Output

Lists

all

lists.all List the uploaded spreadsheets and their processing status Risk: read
Input There is no upload route here, so a new spreadsheet has to be uploaded from the dashboard. Output

delete

lists.delete Delete an uploaded spreadsheet and its results Risk: destructive · Irreversible
Input Output

get

lists.get Read one spreadsheet list, whose status and download URL say when its results are ready Risk: read
Input Output