Skip to content
GuidesBlogPlaygroundDashboard

Elements

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

List<Element> elements

Array of element references to fetch

long id

OSM element ID

Type type

OSM element type

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