Skip to content
GuidesBlogPlaygroundDashboard

Elements

Query features by spatial predicate, bounding box, or H3 cell
FeatureCollection Elements.Query(ElementQueryParams?parameters, CancellationTokencancellationToken = default)
GET/api/v1/features
Query features by spatial predicate, bounding box, or H3 cell
FeatureCollection Elements.QueryPost(ElementQueryPostParams?parameters, CancellationTokencancellationToken = default)
POST/api/v1/features
Get feature by type and ID
GeoJsonFeature Elements.Retrieve(ElementRetrieveParamsparameters, CancellationTokencancellationToken = default)
GET/api/v1/features/{type}/{id}
Get feature by type and ID
GeoJsonFeature Elements.Lookup(ElementLookupParams?parameters, CancellationTokencancellationToken = default)
POST/api/v1/features/lookup
Fetch multiple features by type and ID
FeatureCollection Elements.Batch(ElementBatchParamsparameters, CancellationTokencancellationToken = default)
POST/api/v1/features/batch
Find features near a geographic point
FeatureCollection Elements.Nearby(ElementNearbyParams?parameters, CancellationTokencancellationToken = default)
GET/api/v1/features/nearby
Find features near a geographic point
FeatureCollection Elements.NearbyPost(ElementNearbyPostParams?parameters, CancellationTokencancellationToken = default)
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.

required IReadOnlyList<Element> Elements

Array of element references to fetch

required Long ID

OSM element ID

required Type Type

OSM element type

One of the following:
"node"Node
"way"Way
"relation"Relation