Class: GoogleGeocoder

GoogleGeocoder

WPGMZA.GoogleGeocoder

new GoogleGeocoder()

Subclass, used when Google is the maps engine. Please do not call this constructor directly. Always use createInstance rather than instantiating this class directly. Using createInstance allows this class to be externally extensible.
See:

Extends

Methods


geocode(options)

Geocodes either an address or a latitude and longitude coordinate pair, depending on the input
Parameters:
Name Type Description
options object The options to geocode, you must supply either latLng or address.
Inherited From:
Throws:
You must supply either a latLng or address
Returns:
Type
void

getAddressFromLatLng(options, callback)

Attempts to convert latitud eand longitude coordinates into a street address. By default this will simply return the coordinates wrapped in an array.
Parameters:
Name Type Description
options object The options to geocode, latLng is mandatory.
callback function The callback to receive the geocode result.
Inherited From:
Returns:
Type
void

getLatLngFromAddress(options, callback)

Attempts to convert a street address to an array of potential coordinates that match the address, which are passed to a callback. If the address is interpreted as a latitude and longitude coordinate pair, the callback is immediately fired.
Parameters:
Name Type Description
options object The options to geocode, address is mandatory.
callback function The callback to receive the geocode result.
Inherited From:
Returns:
Type
void