Skip to content
GuidesBlogPlaygroundDashboard

Elements

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

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

elements: List[Element]

Array of element references to fetch

id: int

OSM element ID

type: Literal["node", "way", "relation"]

OSM element type

One of the following:
"node"
"way"
"relation"