Skip to content
GuidesBlogPlaygroundDashboard

Elements

Query features by spatial predicate, bounding box, or H3 cell
elements().query(ElementQueryParamsparams = ElementQueryParams.none(), RequestOptionsrequestOptions = RequestOptions.none()) : FeatureCollection
GET/api/v1/features
Query features by spatial predicate, bounding box, or H3 cell
elements().queryPost(ElementQueryPostParamsparams = ElementQueryPostParams.none(), RequestOptionsrequestOptions = RequestOptions.none()) : FeatureCollection
POST/api/v1/features
Get feature by type and ID
elements().retrieve(ElementRetrieveParamsparams, RequestOptionsrequestOptions = RequestOptions.none()) : GeoJsonFeature
GET/api/v1/features/{type}/{id}
Get feature by type and ID
elements().lookup(ElementLookupParamsparams = ElementLookupParams.none(), RequestOptionsrequestOptions = RequestOptions.none()) : GeoJsonFeature
POST/api/v1/features/lookup
Fetch multiple features by type and ID
elements().batch(ElementBatchParamsparams, RequestOptionsrequestOptions = RequestOptions.none()) : FeatureCollection
POST/api/v1/features/batch
Find features near a geographic point
elements().nearby(ElementNearbyParamsparams = ElementNearbyParams.none(), RequestOptionsrequestOptions = RequestOptions.none()) : FeatureCollection
GET/api/v1/features/nearby
Find features near a geographic point
elements().nearbyPost(ElementNearbyPostParamsparams = ElementNearbyPostParams.none(), RequestOptionsrequestOptions = RequestOptions.none()) : 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: Long

OSM element ID

type: Type

OSM element type

One of the following:
NODE("node")
WAY("way")
RELATION("relation")