Constructor
new GoogleMapsGeocoder(…args)
Creates a new geocoder using Google Map's API
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
args |
Array |
<repeatable> |
List of arguments to be passed to State |
Methods
(protected) _handleGeocoderResponse(callback, location, response, status)
Handles the server response of a successfull address/location resolution
Parameters:
Name | Type | Description |
---|---|---|
callback |
function | Callback that will be executed on success |
location |
Object | Raw location information |
response |
Object | Server response |
status |
Object | Server response status |
forward(query, callback)
Transforms a given address into valid latitude and longitude
Parameters:
Name | Type | Description |
---|---|---|
query |
string | Address to be transformed into latitude and longitude |
callback |
function | Callback that will be executed on success |
reverse(location, callback)
Transforms a given location object (lat, lng) into a valid address
Parameters:
Name | Type | Description |
---|---|---|
location |
string | Location information to be sent to the server |
callback |
function | Callback that will be executed on success |