nearbysearch

package
v0.0.0-...-d72eed1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2014 License: GPL-2.0 Imports: 9 Imported by: 1

README

nearbysearch

Google places nearby search API.

API Documentation

Documentation

Overview

Package nearbysearch implements Google Place's Nearby Search API.

Index

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.

func (PipeList) EncodeValues

func (pipeList PipeList) EncodeValues(key string, v *url.Values) error

EncodeValues encodes PipeList into into URL form.

type RequiredParams

type RequiredParams struct {
	APIKey   string        `url:"key"`
	Location maps.Location `url:"location"`
}

RequiredParams represents params required by the API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL