Skip to content
GuidesBlogPlaygroundDashboard

Elements

Query features by spatial predicate, bounding box, or H3 cell
elements.query(**kwargs) -> FeatureCollection { features, type }
GET/api/v1/features
Query features by spatial predicate, bounding box, or H3 cell
elements.query_post(**kwargs) -> FeatureCollection { features, type }
POST/api/v1/features
Get feature by type and ID
elements.retrieve(id, **kwargs) -> GeoJsonFeature { geometry, properties, type, id }
GET/api/v1/features/{type}/{id}
Get feature by type and ID
elements.lookup() -> GeoJsonFeature { geometry, properties, type, id }
POST/api/v1/features/lookup
Fetch multiple features by type and ID
elements.batch(**kwargs) -> FeatureCollection { features, type }
POST/api/v1/features/batch
Find features near a geographic point
elements.nearby(**kwargs) -> FeatureCollection { features, type }
GET/api/v1/features/nearby
Find features near a geographic point
elements.nearby_post(**kwargs) -> FeatureCollection { features, type }
POST/api/v1/features/nearby
ModelsExpand Collapse
class BatchRequest { elements }

Fetch multiple OSM elements by their type and ID in a single request. Maximum 100 elements per batch.

elements: Array[{ id, type}]

Array of element references to fetch

id: Integer

OSM element ID

type: :node | :way | :relation

OSM element type

One of the following:
:node
:way
:relation