Skip to content
GuidesPlaygroundDashboard

Elements

Query features by bounding box or H3 cell
elements.query(**kwargs) -> FeatureCollection { features, type }
GET/api/v1/features
Get feature by type and ID
elements.retrieve(id, **kwargs) -> GeoJsonFeature { geometry, properties, type, 2 more }
GET/api/v1/features/{type}/{id}
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
ModelsExpand Collapse
class BatchRequest { elements }
elements: Array[{ id, type}]
id: Integer
type: :node | :way | :relation
One of the following:
:node
:way
:relation