Documentation
¶
Index ¶
Constants ¶
View Source
const (
UserAgent = "OpenStreetMap_Go_Client/0.1" // Default UserAgent used by osm queries.
)
Variables ¶
View Source
var DefaultClient = Client{ UserAgent: UserAgent, }
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { City string `json:"city"` StateDistrict string `json:"state_district"` State string `json:"state"` Postcode string `json:"postcode"` Country string `json:"country"` CountryCode string `json:"country_code"` }
Address gives (optional) additional informations about a Place.
type Place ¶
type Place struct { ID int64 `json:"place_id"` Rank int64 `json:"place_rank"` Licence string `json:"licence"` OsmType string `json:"osm_type"` OsmID int64 `json:"osm_id"` Boundingbox []string `json:"boundingbox"` Lat string `json:"lat"` Lng string `json:"lon"` DisplayName string `json:"display_name"` Category string `json:"category"` Type string `json:"type"` Importance float64 `json:"importance"` Address Address `json:"address"` }
Place describes a place location from Nominatim's OpenStreetMap database.
Click to show internal directories.
Click to hide internal directories.