Location
in package
implements
JsonSerializable
The location of a given tracking event.
Interfaces, Classes and Traits
- JsonSerializable
Table of Contents
- $cityLocality : string|null
- The tracking event's city/locality.
- $cityLocality : string|null
- $countryCode : string|null
- $countryCode : string|null
- The tracking event's countryCode.
- $latitude : float|null
- $latitude : float|null
- The tracking event's latitude.
- $longitude : float|null
- $longitude : float|null
- The tracking event's longitude.
- $postalCode : string|null
- $postalCode : string|null
- The tracking event's postal code.
- $stateProvince : string|null
- $stateProvince : string|null
- The tracking event's state/province.
- __construct() : mixed
- Location constructor. The location of where a given tracking event occurred.
- jsonSerialize() : mixed
- Specify data which should be serialized to JSON
Properties
$cityLocality
The tracking event's city/locality.
public
string|null
$cityLocality
$cityLocality
public
string|null
$cityLocality
$countryCode
public
string|null
$countryCode
$countryCode
The tracking event's countryCode.
public
string|null
$countryCode
$latitude
public
float|null
$latitude
$latitude
The tracking event's latitude.
public
float|null
$latitude
$longitude
public
float|null
$longitude
$longitude
The tracking event's longitude.
public
float|null
$longitude
$postalCode
public
string|null
$postalCode
$postalCode
The tracking event's postal code.
public
string|null
$postalCode
$stateProvince
public
string|null
$stateProvince
$stateProvince
The tracking event's state/province.
public
string|null
$stateProvince
Methods
__construct()
Location constructor. The location of where a given tracking event occurred.
public
__construct(array<string|int, mixed> $location_data) : mixed
Parameters
- $location_data : array<string|int, mixed>
Return values
mixed —jsonSerialize()
Specify data which should be serialized to JSON
public
jsonSerialize() : mixed