Appearance
Geolocation
Description
The geolocation module, given the required information, queries the geolocation data of lte devices.
Events
Following events are transmitted via the websocket.
This event is sent via the websocket when a device updates either its properties that hold location information of when the actual location is known. This event requires read
access to the resource geolocation.devices
.
Name | Description |
---|---|
typestring constant | Constant value: GEOLOCATION_DEVICE_UPDATE |
deviceIdentifierstring | The unique device identifier. Albeit being case insensitive, the upper case representation is used throughout the API. |
propertyInformationobject optional | |
propertyInformation.cellIdnumber optional | The cell id of the device |
propertyInformation.mobileCountryCodenumber optional | The mobile country code of the device |
propertyInformation.mobileNetworkCodenumber optional | The mobile network code of the device |
propertyInformation.locationAreaCodenumber optional | The location area code of the device |
locationInformationobject optional | |
locationInformation.locationobject optional | |
locationInformation.location.latnumber | Latitude coordinate of the cell tower |
locationInformation.location.lngnumber | Longitude coordinate of the cell tower |
locationInformation.accuracynumber optional | Approximate accuracy in meters. |
locationInformation.recordedAtnumber optional | Unix timestamp when this was fetched via the API. |
API
EndpointsList geo location cache dataClear geo location cacheList geo location device dataGet geo location data for a deviceClear geo location device dataRemove device geo location data
GET
DEL
GET
GET
DEL
DEL
List geo location cache data
Returns a list of currently cached geo location data.
GET
/api/v1/geolocation/cache
Access
This endpoint requires read
permission for the resource geolocation.cache
.
Response
Name | Description |
---|---|
locationobject | |
location.latnumber | Latitude coordinate of the cell tower |
location.lngnumber | Longitude coordinate of the cell tower |
accuracynumber | Approximate accuracy in meters. |
recordedAtnumber | Unix timestamp when this was fetched via the API. |
cellIdnumber | The cell id of the device |
mobileCountryCodenumber | The mobile country code of the device |
mobileNetworkCodenumber | The mobile network code of the device |
locationAreaCodenumber | The location area code of the device |
Clear geo location cache
Clears the complete cache and forces a new fetch of entries.
DELETE
/api/v1/geolocation/cache
Access
This endpoint requires delete
permission for the resource geolocation.cache
.
Response
This endpoint simply returns Status 204
to indicate a successful operation and to save bandwidth.
List geo location device data
Returns a list of geo location data for devices.
GET
/api/v1/geolocation/devices
Access
This endpoint requires read
permission for the resource geolocation.devices
.
Query Parameter
Name | Description |
---|---|
depthinteger optional | Due to the fact that some resources follow certain hierarchies, the depth query parameter can be used to include nested information in the response. This can be used to minimize roundtrips and is generally advised for. |
Response
Name | Description |
---|---|
deviceIdentifierstring | The unique device identifier. Albeit being case insensitive, the upper case representation is used throughout the API. |
geoLocationInformationobject optional | |
geoLocationInformation.propertyInformationobject optional | |
geoLocationInformation.propertyInformation.cellIdnumber optional | The cell id of the device |
geoLocationInformation.propertyInformation.mobileCountryCodenumber optional | The mobile country code of the device |
geoLocationInformation.propertyInformation.mobileNetworkCodenumber optional | The mobile network code of the device |
geoLocationInformation.propertyInformation.locationAreaCodenumber optional | The location area code of the device |
geoLocationInformation.locationInformationobject optional | |
geoLocationInformation.locationInformation.locationobject optional | |
geoLocationInformation.locationInformation.location.latnumber | Latitude coordinate of the cell tower |
geoLocationInformation.locationInformation.location.lngnumber | Longitude coordinate of the cell tower |
geoLocationInformation.locationInformation.accuracynumber optional | Approximate accuracy in meters. |
geoLocationInformation.locationInformation.recordedAtnumber optional | Unix timestamp when this was fetched via the API. |
Get geo location data for a device
Returns a single entry of geo location data for a device if present.
GET
/api/v1/geolocation/devices/:deviceIdentifier
Access
This endpoint requires read
permission for the resource geolocation.devices
.
URL Parameter
Name | Description |
---|---|
deviceIdentifierstring | The unique device identifier. Albeit being case insensitive, the upper case representation is used throughout the API. |
Response
Name | Description |
---|---|
propertyInformationobject optional | |
propertyInformation.cellIdnumber optional | The cell id of the device |
propertyInformation.mobileCountryCodenumber optional | The mobile country code of the device |
propertyInformation.mobileNetworkCodenumber optional | The mobile network code of the device |
propertyInformation.locationAreaCodenumber optional | The location area code of the device |
locationInformationobject optional | |
locationInformation.locationobject optional | |
locationInformation.location.latnumber | Latitude coordinate of the cell tower |
locationInformation.location.lngnumber | Longitude coordinate of the cell tower |
locationInformation.accuracynumber optional | Approximate accuracy in meters. |
locationInformation.recordedAtnumber optional | Unix timestamp when this was fetched via the API. |
Clear geo location device data
Clears the complete geo location device data.
DELETE
/api/v1/geolocation/devices
Access
This endpoint requires delete
permission for the resource geolocation.devices
.
Response
This endpoint simply returns Status 204
to indicate a successful operation and to save bandwidth.
Remove device geo location data
Clears the geo location data for a single device.
DELETE
/api/v1/geolocation/devices/:deviceIdentifier
Access
This endpoint requires delete
permission for the resource geolocation.devices
.
URL Parameter
Name | Description |
---|---|
deviceIdentifierstring | The unique device identifier. Albeit being case insensitive, the upper case representation is used throughout the API. |
Response
This endpoint simply returns Status 204
to indicate a successful operation and to save bandwidth.