Skip to content
GuidesPlaygroundDashboard

Query

Execute an Overpass QL query
client.Query.Overpass(ctx, body) (*FeatureCollection, error)
POST/api/v1/overpass
Execute a SPARQL query
client.Query.Sparql(ctx, body) (*SparqlResult, error)
POST/api/v1/sparql
ModelsExpand Collapse
type OverpassQuery struct{…}
Data string

Overpass QL query string

type SparqlQuery struct{…}
Query string

SPARQL query string

type SparqlResult struct{…}

GeoJSON FeatureCollection of SPARQL query results

Features []GeoJsonFeature

GeoJSON features from SPARQL query

Coordinates GeoJsonGeometryCoordinatesUnion

GeoJSON coordinates array (nesting depth varies by geometry type)

One of the following:
type GeoJsonGeometryCoordinatesArray []float64
type GeoJsonGeometryCoordinatesArray [][]float64
type GeoJsonGeometryCoordinatesArray [][][]float64
type GeoJsonGeometryCoordinatesArray [][][][]float64
Type GeoJsonGeometryType
One of the following:
const GeoJsonGeometryTypePoint GeoJsonGeometryType = "Point"
const GeoJsonGeometryTypeLineString GeoJsonGeometryType = "LineString"
const GeoJsonGeometryTypePolygon GeoJsonGeometryType = "Polygon"
const GeoJsonGeometryTypeMultiPoint GeoJsonGeometryType = "MultiPoint"
const GeoJsonGeometryTypeMultiLineString GeoJsonGeometryType = "MultiLineString"
const GeoJsonGeometryTypeMultiPolygon GeoJsonGeometryType = "MultiPolygon"
Properties map[string, unknown]
Type GeoJsonFeatureType
ID stringoptional

Feature identifier (type/osm_id)

OsmID int64optional

OpenStreetMap ID

Type SparqlResultType