Documentation ¶
Index ¶
Constants ¶
View Source
const ( StatusOk = "OK" StatusZeroResults = "ZERO_RESULTS" StatusOverQueryLimit = "OVER_QUERY_LIMIT" StatusRequestDenied = "REQUEST_DENIED" StatusInvalidRequest = "INVALID_REQUEST" )
Variables ¶
View Source
var ( RemoteServerError = errors.New("Unable to contact the goog.") BodyReadError = errors.New("Unable to read the response body.") )
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { Lat float64 `json:"lat"` Lng float64 `json:"lng"` Address string `json:"address"` Response *Response `json:"response"` }
func ReverseGeocode ¶
type AddressComponent ¶
type GeometryData ¶
type GeometryData struct { Location LatLng `json:"location"` LocationType string `json:"location_type"` Viewport struct { Southwest LatLng `json:"southwest"` Northeast LatLng `json:"northeast"` } `json:"viewport"` Bounds struct { Southwest LatLng `json:"southwest"` Northeast LatLng `json:"northeast"` } `json:"bounds"` }
type Result ¶
type Result struct { Types []string `json:"types"` FormattedAddress string `json:"formatted_address"` AddressComponents []AddressComponent `json:"address_components"` Geometry GeometryData `json:"geometry"` }
Click to show internal directories.
Click to hide internal directories.