Skip to content
GuidesPlaygroundDashboard

Query

Execute an Overpass QL query
query.overpass(QueryOverpassParams**kwargs) -> FeatureCollection
POST/api/v1/overpass
Execute a SPARQL query
query.sparql(QuerySparqlParams**kwargs) -> SparqlResult
POST/api/v1/sparql
ModelsExpand Collapse
class OverpassQuery:
data: str

Overpass QL query string

class SparqlQuery:
query: str

SPARQL query string

class SparqlResult:

GeoJSON FeatureCollection of SPARQL query results

features: List[GeoJsonFeature]

GeoJSON features from SPARQL query

geometry: GeoJsonGeometry
coordinates: Union[List[float], List[List[float]], List[List[List[float]]], List[List[List[List[float]]]]]

GeoJSON coordinates array (nesting depth varies by geometry type)

One of the following:
List[float]
List[List[float]]
List[List[List[float]]]
List[List[List[List[float]]]]
type: Literal["Point", "LineString", "Polygon", 3 more]
One of the following:
"Point"
"LineString"
"Polygon"
"MultiPoint"
"MultiLineString"
"MultiPolygon"
properties: Dict[str, object]
type: Literal["Feature"]
id: Optional[str]

Feature identifier (type/osm_id)

osm_id: Optional[int]

OpenStreetMap ID

type: Literal["FeatureCollection"]