Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GeolocateError ¶
GeolocateError ...
type GeolocateResponse ¶
type GeolocateResponse struct {
Results []GeolocateResult
}
GeolocateResponse ...
type GeolocateResult ¶
type GeolocateResult struct { FormattedAddress string `json:"formatted_address"` Geometry Geometry }
GeolocateResult ...
type GoogleMapsAPI ¶
GoogleMapsAPI ...
type JSONRequest ¶
type JSONRequest struct { Lat string `json:"lat"` Lng string `json:"lng"` Distance string `json:"distance"` Pricing string `json:"pricing"` }
JSONRequest ...
type Jsonable ¶
type Jsonable interface {
ToJSON() (json.RawMessage, error)
}
Jsonable an entity that returns a JSON representation of itself
type Place ¶
type Place struct { Address string `json:"address"` Location maps.LatLng `json:"location"` Name string `json:"name"` Phone string `json:"phone"` Rating float32 `json:"rating"` Schedule string `json:"schedule"` PriceLevel int `json:"price_level"` Types string `json:"types"` }
Place ...
type SearchRequest ¶
type SearchRequest struct { Lat float64 `json:"lat"` Lng float64 `json:"lng"` Distance uint `json:"distance"` Pricing int `json:"pricing"` }
SearchRequest ...
func NewFromJSON ¶
func NewFromJSON(bodyBytes []byte) (sr SearchRequest, err error)
NewFromJSON loads a Location from the request Body
Click to show internal directories.
Click to hide internal directories.