Documentation
¶
Overview ¶
Package geocoding implements simple geocoding functions.
Index ¶
Constants ¶
View Source
const (
// GoogleGeocodeURL is the base URL used for the geocoding API.
GoogleGeocodeURL = "https://maps.googleapis.com/maps/api/geocode/json"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
Info is the type containing results and success status of geocoding.
func ReverseGeocode ¶
ReverseGeocode performs a reverse geocoding request, converting latlng into an address.
type Result ¶
type Result struct { AddressComponents []struct { LongName string `json:"long_name"` ShortName string `json:"short_name"` Types []string `json:"types"` } `json:"address_components"` FormattedAddress string `json:"formatted_address"` Geometry struct { Location maps.LatLngLocation `json:"location"` LocationType string `json:"location_type"` ViewPort struct { NorthEast maps.LatLngLocation `json:"northeast"` SouthWest maps.LatLngLocation `json:"southwest"` } `json:"viewport"` } `json:"geometry"` Types []string `json:"types"` }
Result is the type specifying geocoding results.
Click to show internal directories.
Click to hide internal directories.