google-places-browser
Google place API client for the browser
Install
$ npm install --save google-places-browser
Usage
var Autocomplete = var Places = var autocomplete = var places = autocomplete places
API
All API methods wrap Google's callback in Node-style (err, args...
) errbacks. Errors have a code
property that exposes the the returned service status.
Places(google)
-> object
Required
Type: object
The Google Maps JS API.
Returns an alternate place API with the following methods that wrap the PlacesService
class:
- details
- nearby
- radar
- text
Autocomplete(google)
-> object
Required
Type: object
The Google Maps JS API.
Returns an alternate autocomplete API with the following methods that wrap the AutocompleteService
class:
- place
- query
License
MIT © Ben Drucker