class CRM_Utils_Geocode_Yahoo

Class that uses Yahoo! PlaceFinder API to retrieve the lat/long of an address Documentation is at http://developer.yahoo.com/geo/placefinder/

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 array and gets the latitude / longitude and postal code 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 67
static bool format(array $values, bool $stateName = FALSE)

Function that takes an address array and gets the latitude / longitude and postal code 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 Associative array of address data: country, street_address, city, state_province, postal code.
bool $stateName This parameter currently has no function.

Return Value

bool true if we modified the address, false otherwise