google-places-api is a Google Places API wrap in Go
go get github.com/sugamon/google-places-api
- TextSearch
import (
"context"
places "github.com/sugamon/google-places-api"
)
apiKey := os.Getenv("API_KEY")
p := places.NewClient(apiKey)
optionalParams := places.OptionalParams{
Language: "en",
Location: "uk",
}
res, err := p.TextSearch(context.Background(), "london beer", optionalParams)