service: GeoCoder

GeoCoder

GeoCoder()

Provides defered/promise API service for Google Geocoder service

Methods

geocode(options) → {HttpPromise}

Parameters:
Name Type Description
options Hash

https://developers.google.com/maps/documentation/geocoding/#geocoding

Returns:

Future object

Type
HttpPromise
Example
```
  GeoCoder.geocode({address: 'the cn tower'}).then(function(result) {
    //... do something with result
  });
```