All Data Structures Functions Variables Pages
Static Public Member Functions
AddressMappingUtil Class Reference

Static Public Member Functions

static updateChangedAddresses ($count=500)
 
static sanitizeLatitudeOrLongitude ($value)
 
static fetchChangedAddressCollection ($count)
 
static fetchGeocodeForAddress ($addressString)
 

Detailed Description

Class to fetch geocode for addresses and update the latitude and longitude for the corresponding addresses.

Definition at line 40 of file AddressMappingUtil.php.

Member Function Documentation

static updateChangedAddresses (   $count = 500)
static

Gets lat/long values for changed address and saves to address model.

Parameters
int$count- number of changed address to update per function call.

Definition at line 46 of file AddressMappingUtil.php.

static sanitizeLatitudeOrLongitude (   $value)
static
Parameters
int$value
Returns
string

Definition at line 88 of file AddressMappingUtil.php.

static fetchChangedAddressCollection (   $count)
static

Gets a subset of changed address object.

Parameters
int$count- number of changed address to fetch.
Returns
object - address collection object.

Definition at line 99 of file AddressMappingUtil.php.

static fetchGeocodeForAddress (   $addressString)
static

Gets the lat/long coordinates for address string.

Parameters
string$addressString- address string for geocode query.
Returns
array lat/long coordinates.

Definition at line 145 of file AddressMappingUtil.php.


The documentation for this class was generated from the following file:
Generated on Tue Jan 28 2020 07:10:23