CoolCMS API

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

Methods

formatLatitude()

Value of the advert `latitude` parameter (text, 6 decimals like the region column).

public formatLatitude() : string
Return values
string

formatLongitude()

Value of the advert `longitude` parameter.

public formatLongitude() : string
Return values
string

fromValues()

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
Return values
string
On this page

Search results