LastComputedLocation extends Model
Contains the estimated position of the device within a circle based on the GPS data or the Sigfox Geolocation service
Table of Contents
- SOURCE_CODE_HD_NETWORK_LOCATION = 4
- computed using HD network location
- SOURCE_CODE_NETWORK_LOCATION = 2
- computed using Network location
- SOURCE_CODE_POI_LOCATION = 3
- computed using PoI location
- SOURCE_CODE_PRIVATE_DATABASE_LOCATION = 5
- computed using private database location
- SOURCE_CODE_PROXIMITY_LOCATION = 7
- computed using Proximity location
- SOURCE_CODE_RSSI_AND_POSITION_OF_THE_STATION = 0
- computed using RSSI and position of the station (legacy)
- SOURCE_CODE_THE_GPS_DATA_INSIDE_THE_PAYLOAD = 1
- computed using the GPS data inside the payload
- SOURCE_CODE_WIFI_LOCATION = 6
- computed using WiFi location
- $lat : float|null
- The device's estimated latitude
- $lng : float|null
- The device's estimated longitude
- $placeIds : array<string|int, mixed>|null
- The place ids computed by the Sigfox Geolocation service
- $radius : int|null
- The radius of the circle (meters)
- $sourceCode : int|null
- Define how the location has been computed:
- from() : static
- Initializing a model from an array
- getLat() : float
- Getter for lat
- getLng() : float
- Getter for lng
- getPlaceIds() : array<string|int, string>
- Getter for placeIds
- getRadius() : int
- Getter for radius
- getSourceCode() : int
- Getter for sourceCode
- jsonSerialize() : array<string|int, mixed>
- setLat() : static
- Setter for lat
- setLng() : static
- Setter for lng
- setPlaceIds() : static
- Setter for placeIds
- setRadius() : static
- Setter for radius
- setSourceCode() : static
- Setter for sourceCode
Constants
SOURCE_CODE_HD_NETWORK_LOCATION
computed using HD network location
public
mixed
SOURCE_CODE_HD_NETWORK_LOCATION
= 4
SOURCE_CODE_NETWORK_LOCATION
computed using Network location
public
mixed
SOURCE_CODE_NETWORK_LOCATION
= 2
SOURCE_CODE_POI_LOCATION
computed using PoI location
public
mixed
SOURCE_CODE_POI_LOCATION
= 3
SOURCE_CODE_PRIVATE_DATABASE_LOCATION
computed using private database location
public
mixed
SOURCE_CODE_PRIVATE_DATABASE_LOCATION
= 5
SOURCE_CODE_PROXIMITY_LOCATION
computed using Proximity location
public
mixed
SOURCE_CODE_PROXIMITY_LOCATION
= 7
SOURCE_CODE_RSSI_AND_POSITION_OF_THE_STATION
computed using RSSI and position of the station (legacy)
public
mixed
SOURCE_CODE_RSSI_AND_POSITION_OF_THE_STATION
= 0
SOURCE_CODE_THE_GPS_DATA_INSIDE_THE_PAYLOAD
computed using the GPS data inside the payload
public
mixed
SOURCE_CODE_THE_GPS_DATA_INSIDE_THE_PAYLOAD
= 1
SOURCE_CODE_WIFI_LOCATION
computed using WiFi location
public
mixed
SOURCE_CODE_WIFI_LOCATION
= 6
Properties
$lat
The device's estimated latitude
protected
float|null
$lat
= null
$lng
The device's estimated longitude
protected
float|null
$lng
= null
$placeIds
The place ids computed by the Sigfox Geolocation service
protected
array<string|int, mixed>|null
$placeIds
= null
$radius
The radius of the circle (meters)
protected
int|null
$radius
= null
$sourceCode
Define how the location has been computed:
protected
int|null
$sourceCode
= null
- LastComputedLocation::SOURCE_CODE_RSSI_AND_POSITION_OF_THE_STATION
- LastComputedLocation::SOURCE_CODE_THE_GPS_DATA_INSIDE_THE_PAYLOAD
- LastComputedLocation::SOURCE_CODE_NETWORK_LOCATION
- LastComputedLocation::SOURCE_CODE_POI_LOCATION
- LastComputedLocation::SOURCE_CODE_HD_NETWORK_LOCATION
- LastComputedLocation::SOURCE_CODE_PRIVATE_DATABASE_LOCATION
- LastComputedLocation::SOURCE_CODE_WIFI_LOCATION
- LastComputedLocation::SOURCE_CODE_PROXIMITY_LOCATION
Methods
from()
Initializing a model from an array
public
static from(array<string|int, mixed> $params) : static
Parameters
- $params : array<string|int, mixed>
-
Pass this parameter if you want to initial property value from an array. See API reference for all property names and types
Tags
Return values
static —getLat()
Getter for lat
public
getLat() : float
Return values
float —The device's estimated latitude
getLng()
Getter for lng
public
getLng() : float
Return values
float —The device's estimated longitude
getPlaceIds()
Getter for placeIds
public
getPlaceIds() : array<string|int, string>
Return values
array<string|int, string> —The place ids computed by the Sigfox Geolocation service
getRadius()
Getter for radius
public
getRadius() : int
Return values
int —The radius of the circle (meters)
getSourceCode()
Getter for sourceCode
public
getSourceCode() : int
Return values
int —Define how the location has been computed:
- LastComputedLocation::SOURCE_CODE_RSSI_AND_POSITION_OF_THE_STATION
- LastComputedLocation::SOURCE_CODE_THE_GPS_DATA_INSIDE_THE_PAYLOAD
- LastComputedLocation::SOURCE_CODE_NETWORK_LOCATION
- LastComputedLocation::SOURCE_CODE_POI_LOCATION
- LastComputedLocation::SOURCE_CODE_HD_NETWORK_LOCATION
- LastComputedLocation::SOURCE_CODE_PRIVATE_DATABASE_LOCATION
- LastComputedLocation::SOURCE_CODE_WIFI_LOCATION
- LastComputedLocation::SOURCE_CODE_PROXIMITY_LOCATION
jsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —setLat()
Setter for lat
public
setLat(float $lat) : static
Parameters
- $lat : float
-
The device's estimated latitude
Return values
static —To use in method chains
setLng()
Setter for lng
public
setLng(float $lng) : static
Parameters
- $lng : float
-
The device's estimated longitude
Return values
static —To use in method chains
setPlaceIds()
Setter for placeIds
public
setPlaceIds(array<string|int, string> $placeIds) : static
Parameters
- $placeIds : array<string|int, string>
-
The place ids computed by the Sigfox Geolocation service
Return values
static —To use in method chains
setRadius()
Setter for radius
public
setRadius(int $radius) : static
Parameters
- $radius : int
-
The radius of the circle (meters)
Return values
static —To use in method chains
setSourceCode()
Setter for sourceCode
public
setSourceCode(int $sourceCode) : static
Parameters
- $sourceCode : int
-
Define how the location has been computed:
- LastComputedLocation::SOURCE_CODE_RSSI_AND_POSITION_OF_THE_STATION
- LastComputedLocation::SOURCE_CODE_THE_GPS_DATA_INSIDE_THE_PAYLOAD
- LastComputedLocation::SOURCE_CODE_NETWORK_LOCATION
- LastComputedLocation::SOURCE_CODE_POI_LOCATION
- LastComputedLocation::SOURCE_CODE_HD_NETWORK_LOCATION
- LastComputedLocation::SOURCE_CODE_PRIVATE_DATABASE_LOCATION
- LastComputedLocation::SOURCE_CODE_WIFI_LOCATION
- LastComputedLocation::SOURCE_CODE_PROXIMITY_LOCATION
Return values
static —To use in method chains