Method | Description | |
---|---|---|
__construct ( string $address, stdClass $dataFromService ) | Create a new Location object | |
getAddress ( string $default = '' ) : string | Gets the address | |
getCountry ( string $default = '' ) : string | Gets the country of the location | |
getDistrict ( string $default = '' ) : string | Gets the district of the location | |
getLatitude ( string $default = '' ) : string | Gets the latitude of the location | |
getLocality ( string $default = '' ) : string | Gets the locality of the location | |
getLongitude ( string $default = '' ) : string | Gets the longitude of the location | |
getPostcode ( string $default = '' ) : string | Gets the post code for the location | |
getStreetAddress ( string $default = '' ) : string | Gets the street address | |
getStreetNumber ( string $default = '' ) : string | Gets the street number for the location | |
getTown ( string $default = '' ) : string | Gets the town for the location | |
isValid ( ) : boolean | Checks whether the data passed to the class was valid |
Method | Description | |
---|---|---|
populateDetail ( stdClass $locationDetail ) : boolean | Populates the object with the detail from the service |
public __construct ( string $address, stdClass $dataFromService ) | ||
$address | string | Address whose detail it is |
$dataFromService | stdClass | The data retrieved from the Geocoding service |
public getAddress ( string $default = '' ) : string | ||
$default | string | |
return | string |
public getCountry ( string $default = '' ) : string | ||
$default | string | |
return | string |
public getDistrict ( string $default = '' ) : string | ||
$default | string | |
return | string |
public getLatitude ( string $default = '' ) : string | ||
$default | string | |
return | string |
public getLocality ( string $default = '' ) : string | ||
$default | string | |
return | string |
public getLongitude ( string $default = '' ) : string | ||
$default | string | |
return | string |
public getPostcode ( string $default = '' ) : string | ||
$default | string | |
return | string |
public getStreetAddress ( string $default = '' ) : string | ||
$default | string | |
return | string |
public getStreetNumber ( string $default = '' ) : string | ||
$default | string | |
return | string |