class CRM_Utils_Geocode_Google

Class that uses google geocoder

Properties

static protected string $_server Server to retrieve the lat/long
static protected string $_uri Uri of service.

Methods

static bool
format(array $values, bool $stateName = FALSE)

Function that takes an address object and gets the latitude / longitude for this address. Note that at a later stage, we could make this function also clean up the address into a more valid format

Details

at line 64
static bool format(array $values, bool $stateName = FALSE)

Function that takes an address object and gets the latitude / longitude for this address. Note that at a later stage, we could make this function also clean up the address into a more valid format

Parameters

array $values
bool $stateName

Return Value

bool true if we modified the address, false otherwise