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

Geo

boundaries

geo.boundaries Read the administrative boundaries a place belongs to, such as its city, county and country Risk: read
Input Identify the place by id, by lat/lon, or by osm_id with osm_type. Output

elevation

geo.elevation Sample the terrain elevation at one or more points, in metres or feet Risk: read
Input
Output

ip

geo.ip Locate an IP address, or the caller when none is given, returning its country, city and coordinates Risk: read
Input Output

postcodeList

geo.postcodeList Search postcodes by a prefix or a spatial filter, which is what a postcode autocomplete needs Risk: read
Input Output

postcodeSearch

geo.postcodeSearch Look up a postcode, returning its coordinates and the places it covers Risk: read
Input Output

timezone

geo.timezone Read the time zone at a point, including whether daylight saving applies at a given moment Risk: read
Input Output

Geocode

autocomplete

geocode.autocomplete Suggest addresses from a partial one as a user types, which is what a search box needs Risk: read
Input Output

forward

geocode.forward Turn an address or place name into coordinates, a formatted address and its components, with a confidence for the match Risk: read
Input Always asks for format: json, so matches are under results. Output

reverse

geocode.reverse Turn a latitude and longitude into the address at that point, with its full set of components Risk: read
Input Output

Places

details

places.details Read one place by its ID, with its address, categories, contact details and opening hours Risk: read
Input Output

places.search Find places by category within an area, such as restaurants inside a circle, with the details each place carries Risk: read
Input A v2 route, so it always answers a feature collection under features. Output

Routing

isoline

routing.isoline Calculate the area reachable from a point within a time or distance, one polygon per range. A slow calculation returns only an id to read it with later Risk: read
Input Output

matrix

routing.matrix Calculate the time and distance between every source and target, one row per source. A pair with no route has null distance and time Risk: read
Input Points are { lat, lon }. A pair with no route has null distance and time, and the rest of the matrix is still valid.
Output

route

routing.route Calculate a route between waypoints, with distance, time and optional turn-by-turn steps and geometry Risk: read
Input format defaults to json, where geometry is one list of { lat, lon } points per leg; geojson returns features instead of results. Output