Client
ModelsExpand Collapse
Error = object { error } Standard API error envelope. Every error response wraps a single error object with a machine-readable code, a human-readable message, and optional structured details.
Standard API error envelope. Every error response wraps a single error object with a machine-readable code, a human-readable message, and optional structured details.
FeatureCollection = object { features, type } GeoJSON FeatureCollection (RFC 7946). For paginated endpoints, metadata is returned in HTTP response headers rather than the body:
Header
Description
X-Limit
Requested result limit
X-Has-More
true if more results exist
X-Next-Cursor
Opaque cursor for next page (cursor pagination)
X-Next-Offset
Numeric offset for next page (offset pagination)
Link
RFC 8288 rel="next" link to the next page
Content-Type is application/geo+json.
GeoJSON FeatureCollection (RFC 7946). For paginated endpoints, metadata is returned in HTTP response headers rather than the body:
| Header | Description |
|---|---|
X-Limit |
Requested result limit |
X-Has-More |
true if more results exist |
X-Next-Cursor |
Opaque cursor for next page (cursor pagination) |
X-Next-Offset |
Numeric offset for next page (offset pagination) |
Link |
RFC 8288 rel="next" link to the next page |
Content-Type is application/geo+json.
Array of GeoJSON Feature objects
Array of GeoJSON Feature objects
GeoJSON Geometry object per RFC 7946. Coordinates use [longitude, latitude] order. 3D coordinates [lng, lat, elevation] are used for elevation endpoints.
GeoJSON Geometry object per RFC 7946. Coordinates use [longitude, latitude] order. 3D coordinates [lng, lat, elevation] are used for elevation endpoints.
coordinates: array of number or array of array of number or array of array of array of number or array of array of array of array of numberCoordinates array. Nesting depth varies by geometry type: Point = [lng, lat], LineString = [[lng, lat], ...], Polygon = [[[lng, lat], ...], ...], etc.
Coordinates array. Nesting depth varies by geometry type: Point = [lng, lat], LineString = [[lng, lat], ...], Polygon = [[[lng, lat], ...], ...], etc.
GeoJsonFeature = object { geometry, properties, type, id } GeoJSON Feature representing an OSM element. Tags from the original OSM element are flattened directly into properties (not nested under a tags key). Metadata fields @type and @id identify the OSM element type and ID within properties.
GeoJSON Feature representing an OSM element. Tags from the original OSM element are flattened directly into properties (not nested under a tags key). Metadata fields @type and @id identify the OSM element type and ID within properties.
GeoJSON Geometry object per RFC 7946. Coordinates use [longitude, latitude] order. 3D coordinates [lng, lat, elevation] are used for elevation endpoints.
GeoJSON Geometry object per RFC 7946. Coordinates use [longitude, latitude] order. 3D coordinates [lng, lat, elevation] are used for elevation endpoints.
coordinates: array of number or array of array of number or array of array of array of number or array of array of array of array of numberCoordinates array. Nesting depth varies by geometry type: Point = [lng, lat], LineString = [[lng, lat], ...], Polygon = [[[lng, lat], ...], ...], etc.
Coordinates array. Nesting depth varies by geometry type: Point = [lng, lat], LineString = [[lng, lat], ...], Polygon = [[[lng, lat], ...], ...], etc.
GeoJsonGeometry = object { coordinates, type } GeoJSON Geometry object per RFC 7946. Coordinates use [longitude, latitude] order. 3D coordinates [lng, lat, elevation] are used for elevation endpoints.
GeoJSON Geometry object per RFC 7946. Coordinates use [longitude, latitude] order. 3D coordinates [lng, lat, elevation] are used for elevation endpoints.
coordinates: array of number or array of array of number or array of array of array of number or array of array of array of array of numberCoordinates array. Nesting depth varies by geometry type: Point = [lng, lat], LineString = [[lng, lat], ...], Polygon = [[[lng, lat], ...], ...], etc.
Coordinates array. Nesting depth varies by geometry type: Point = [lng, lat], LineString = [[lng, lat], ...], Polygon = [[[lng, lat], ...], ...], etc.