Documentation ¶
Overview ¶
Package nearbysearch implements Google Place's Nearby Search API.
Index ¶
- Constants
- func NearbySearch(requiredParams *RequiredParams, optionalParams ...interface{}) (searchResponse *places.Response, err error)
- type OptionalKeywordParam
- type OptionalLanguageParam
- type OptionalMaxPriceParam
- type OptionalMinPriceParam
- type OptionalNameParam
- type OptionalOpenNowParam
- type OptionalPageTokenParam
- type OptionalRadiusParam
- type OptionalRankByParam
- type OptionalTypesParam
- type OptionalZagatSelectedParam
- type PipeList
- type RequiredParams
Constants ¶
View Source
const (
// APIURL is the URL to the API call.
APIURL = "https://maps.googleapis.com/maps/api/place/nearbysearch/json"
)
Variables ¶
This section is empty.
Functions ¶
func NearbySearch ¶
func NearbySearch(requiredParams *RequiredParams, optionalParams ...interface{}) (searchResponse *places.Response, err error)
NearbySearch performs a search using Google's API.
Types ¶
type OptionalKeywordParam ¶
type OptionalKeywordParam struct {
Keyword string `url:"keyword"`
}
OptionalKeywordParam optional param.
type OptionalLanguageParam ¶
type OptionalLanguageParam struct {
Language string `url:"language"`
}
OptionalLanguageParam optional param.
type OptionalMaxPriceParam ¶
type OptionalMaxPriceParam struct {
MaxPrice int `url:"maxprice"`
}
OptionalMaxPriceParam optional param.
type OptionalMinPriceParam ¶
type OptionalMinPriceParam struct {
MinPrice int `url:"minprice"`
}
OptionalMinPriceParam optional param.
type OptionalNameParam ¶
type OptionalNameParam struct {
Name string `url:"name"`
}
OptionalNameParam optional param.
type OptionalOpenNowParam ¶
type OptionalOpenNowParam struct {
OpenNow bool `url:"opennow"`
}
OptionalOpenNowParam optional param.
type OptionalPageTokenParam ¶
type OptionalPageTokenParam struct {
PageToken string `url:"pagetoken"`
}
OptionalPageTokenParam optional param.
type OptionalRadiusParam ¶
type OptionalRadiusParam struct {
Radius int `url:"radius"`
}
OptionalRadiusParam optional param.
type OptionalRankByParam ¶
type OptionalRankByParam struct {
RankBy string `url:"rankby"`
}
OptionalRankByParam optional param.
type OptionalTypesParam ¶
type OptionalTypesParam struct {
Types PipeList `url:"types"`
}
OptionalTypesParam optional param.
type OptionalZagatSelectedParam ¶
type OptionalZagatSelectedParam struct {
ZagatSelected bool `url:"zagatselected"`
}
OptionalZagatSelectedParam optional param.
type PipeList ¶
type PipeList []string
PipeList represents a slice of strings to be separated by a pipe symbol.
type RequiredParams ¶
RequiredParams represents params required by the API.
Click to show internal directories.
Click to hide internal directories.