nominatim

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryNominatim

func QueryNominatim(placeName string) (coordinates [][][]float64, err error)

Types

type GeneralMap

type GeneralMap map[string]interface{}

type GeoJSON

type GeoJSON struct {
	Type         string          `json:"type"`
	Coordinates  json.RawMessage `json:"coordinates"`
	Point        GeoJSONPoint
	Line         GeoJSONLine
	Polygon      GeoJSONPolygon
	MultiPolygon GeoJSONMultiPolygon
}

type GeoJSONLine

type GeoJSONLine struct {
	Coordinates [][]float64
}

type GeoJSONMultiPolygon

type GeoJSONMultiPolygon struct {
	Coordinates [][][][]float64
}

type GeoJSONPoint

type GeoJSONPoint struct {
	Coordinates []float64
}

type GeoJSONPolygon

type GeoJSONPolygon struct {
	Coordinates [][][]float64
}

type NominatimItem

type NominatimItem struct {
	OSMType     int       `json:"osm_type"`
	OSMID       int       `json:"osm_id"`
	GeoJSON     GeoJSON   `json:"geojson"`
	BoundingBox []float64 `json:"boundingbox"`
	DisplayName string    `json:"display_name"`
	Lat         float64   `json:"lat"`
	Lon         float64   `json:"lon"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL