GeoCoordinates
in package
FinalYes
Geographic point (WGS84): a municipality center from `cms_system_regions`, a Google result or a cache hit.
Created only via fromValues(): a non-numeric value, an out-of-range point or the
"null island" 0/0 (empty decimal column, (string) null from an old write) yields no point.
Table of Contents
Properties
- $latitude : float
- $longitude : float
Methods
- formatLatitude() : string
- Value of the advert `latitude` parameter (text, 6 decimals like the region column).
- formatLongitude() : string
- Value of the advert `longitude` parameter.
- fromValues() : self|null
- __construct() : mixed
- format() : string
Properties
$latitude read-only
public
float
$latitude
$longitude read-only
public
float
$longitude
Methods
formatLatitude()
Value of the advert `latitude` parameter (text, 6 decimals like the region column).
public
formatLatitude() : string
Return values
stringformatLongitude()
Value of the advert `longitude` parameter.
public
formatLongitude() : string
Return values
stringfromValues()
public
static fromValues(mixed $latitude, mixed $longitude) : self|null
Parameters
- $latitude : mixed
- $longitude : mixed
Return values
self|null__construct()
private
__construct(float $latitude, float $longitude) : mixed
Parameters
- $latitude : float
- $longitude : float
format()
private
static format(float $value) : string
Parameters
- $value : float