Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Geoname ¶
type Geoname struct { GeonameID int `json:"geonameId"` CountryID string `json:"countryId"` ToponymName string `json:"toponymName"` Population int `json:"population"` CountryCode string `json:"countryCode"` Name string `json:"name"` CountryName string `json:"countryName"` Lat string `json:"lat"` Lng string `json:"lng"` }
Geoname contains location data
func (*Geoname) Coordinates ¶
GetCoordinates returns latitude and longitude
type LocationResult ¶
type LocationResult struct { ResultCount int `json:"totalResultsCount"` Geonames []Geoname `json:"geonames"` }
LocationResult contains found locations
Click to show internal directories.
Click to hide internal directories.