Gets the last device location
HTTP request
GET /api/device/{deviceId}/LastLocation
Path parameters
Parameter | Type | Description |
---|---|---|
deviceId | string | Device identification |
Headers
Parameter | Value | Description |
---|---|---|
Authorization | Bearer {token} | Token generated on authentication |
Response body
{
"success": true,
"error": "string",
"lastLocation": {
"dateTime": "2022-10-30T17:09:07.477Z",
"latitude": 0,
"longitude": 0,
"speed": 0,
"course": 0,
"battery": 0,
"fuel": 0,
"fuel2": 0,
"temperature": 0,
"sensorTime1": 0,
"sensorTime2": 0,
"sensorTime3": 0,
"sensorTime4": 0,
"inactiveSeconds": 0,
"rpm": 0,
"milleage": 0,
"attributes": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
}
}
}
Parameter | Type | Description |
---|---|---|
success | bool | Return if operation was successful |
error | string | Text with description of the error |
lastLocation | object | |
lastLocation.dateTime | datetime | Location date |
lastLocation.latitude | double | Location latitude |
lastLocation.longitude | double | Location longitude |
lastLocation.speed | double | Speed in Km/h |
lastLocation.course | double | Heading direction 0 to 360 degrees |
lastLocation.battery | int | Internal battery level 0% to 100%. |
lastLocation.fuel | int | Fuel level 0% to 100%. |
lastLocation.fuel2 | int | Fuel level 2 0% to 100%. |
lastLocation.temperature | double | Temperature recorded by the device |
lastLocation.sensorTime1 | long | Sensor 1 active time in seconds |
lastLocation.sensorTime2 | long | Sensor 2 active time in seconds |
lastLocation.sensorTime3 | long | Sensor 3 active time in seconds |
lastLocation.sensorTime4 | long | Sensor 4 active time in seconds |
lastLocation.inactiveSeconds | int | Stopped time in seconds |
lastLocation.rpm | int | Revolutions per minute recorded by the device |
lastLocation.milleage | double | Mileage calculated in kilometers |
lastLocation.attributes | object | Additional location attributes |
Índice
- Welcome to ALTAGAMA GPS help
- Map
- Reports
- Left panel
- Show Route
- GeoFences
- Alerts
- Mileage Calculation
- Atributes
- Enable map notifications
- Statistics
- Devices
- Alerts
- Enable Telegram notifications
- Email alerts sending limits
- Groups
- Share Access
- Users
- Settings
- SMS
- Activation Code
- Line Renewal
- Points redemption
- Developers
- API Activation
- Rest API
- Authentication
- Devices
- Device
- Last Location
- Locations
- Alerts
- Embed on my website
- Embed the map on my website
- Mobile App
- Advanced Mobile App
- Mobile application with push notifications
- API (Obsolete)
- Operations and results
- Format of requests and responses
- Example
- Sample Codes