Client
ModelsExpand Collapse
type Error struct{…}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.
type FeatureCollection struct{…}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.
Features []GeoJsonFeatureArray of GeoJSON Feature objects
Array of GeoJSON Feature objects
Geometry GeoJsonGeometryGeoJSON 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 GeoJsonGeometryCoordinatesUnionCoordinates 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.
type GeoJsonFeature struct{…}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.
Geometry GeoJsonGeometryGeoJSON 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 GeoJsonGeometryCoordinatesUnionCoordinates 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.
type GeoJsonGeometry struct{…}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 GeoJsonGeometryCoordinatesUnionCoordinates 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.