Skip to content
GuidesPlaygroundDashboard

Query

Execute an Overpass QL query
query().overpass(QueryOverpassParamsparams, RequestOptionsrequestOptions = RequestOptions.none()) : FeatureCollection
POST/api/v1/overpass
Execute a SPARQL query
query().sparql(QuerySparqlParamsparams, RequestOptionsrequestOptions = RequestOptions.none()) : SparqlResult
POST/api/v1/sparql
ModelsExpand Collapse
class OverpassQuery:
data: String

Overpass QL query string

class SparqlQuery:
query: String

SPARQL query string

class SparqlResult:

GeoJSON FeatureCollection of SPARQL query results

features: List<GeoJsonFeature>

GeoJSON features from SPARQL query

geometry: GeoJsonGeometry
coordinates: Coordinates

GeoJSON coordinates array (nesting depth varies by geometry type)

One of the following:
List<Double>
List<List<Double>>
List<List<List<Double>>>
List<List<List<List<Double>>>>
type: Type
One of the following:
POINT("Point")
LINE_STRING("LineString")
POLYGON("Polygon")
MULTI_POINT("MultiPoint")
MULTI_LINE_STRING("MultiLineString")
MULTI_POLYGON("MultiPolygon")
properties: Properties
type: Type
id: Optional<String>

Feature identifier (type/osm_id)

osmId: Optional<Long>

OpenStreetMap ID

type: Type