项目作者: ramadani

项目描述 :
Golang package for Google Maps Place Autocomplete
高级语言: Go
项目地址: git://github.com/ramadani/gmplace.git
创建时间: 2018-10-21T23:39:01Z
项目社区:https://github.com/ramadani/gmplace

开源协议:MIT License

下载


gmplace

Golang package for Google Maps Place Autocomplete

Installation

  1. go get github.com/ramadani/gmplace

Usage

  1. import "github.com/ramadani/gmplace"
  2. gmplace := gmplace.New("YOUR_GOOGLE_API_KEY")
  3. res, err := gmplace.Autocomplete(map[string]string{
  4. "input": "your keyword",
  5. "language": "your language id",
  6. })
  7. if err != nil {
  8. log.Println(err)
  9. }
  10. // do something with res

For result response, you can see it at https://developers.google.com/places/web-service/autocomplete#place_autocomplete_responses

License

This library is distributed under the MIT license.