Skip to content
GuidesPlaygroundDashboard

Elements

Query features by bounding box or H3 cell
client.Elements.Query(ctx, query) (*FeatureCollection, error)
GET/api/v1/features
Get feature by type and ID
client.Elements.Get(ctx, type_, id) (*GeoJsonFeature, error)
GET/api/v1/features/{type}/{id}
Fetch multiple features by type and ID
client.Elements.Batch(ctx, body) (*FeatureCollection, error)
POST/api/v1/features/batch
Find features near a geographic point
client.Elements.Nearby(ctx, query) (*FeatureCollection, error)
GET/api/v1/features/nearby
ModelsExpand Collapse
type BatchRequest struct{…}
Elements []BatchRequestElement
ID int64
Type BatchRequestElementsType
One of the following:
const BatchRequestElementsTypeNode BatchRequestElementsType = "node"
const BatchRequestElementsTypeWay BatchRequestElementsType = "way"
const BatchRequestElementsTypeRelation BatchRequestElementsType = "relation"