# 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:
    - WPGMZA.Geocoder.createInstance

### Extends

- WPGMZA.Geocoder

### 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:
    - WPGMZA.Geocoder#geocode

  ##### 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:
    - WPGMZA.Geocoder#getAddressFromLatLng

  ##### 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:
    - WPGMZA.Geocoder#getLatLngFromAddress

  ##### Returns:

  Type
    void

#### Search results