The base URL will differ depending on the region you are connecting to:
| Region | Host |
|---|---|
| Australia | https://api-au.localz.io |
| Europe | https://api-eu.localz.io |
| United States | https://api-us.localz.io |
All API endpoints require apikey HTTP header, that gives you access to your Localz project.
Submit a single device location
| projectId required | string Project ID |
Location
| deviceId required | string Some identifier for the device - can be GUID/UUID etc. |
| eventDateTime required | string Timestamp for the device location in ISO 8601 format |
required | object (request.geoJSON) |
{- "deviceId": "string",
- "eventDateTime": "2020-10-04T23:45:01+00:00",
- "geoJson": {
- "coordinates": [
- 144.4913965,
- -37.9701481
], - "type": "Point"
}
}{ }Submit a batch of locations for different devices
| projectId required | string Project ID |
Locations
required | Array of objects (request.Location) |
{- "locations": [
- {
- "deviceId": "string",
- "eventDateTime": "2020-10-04T23:45:01+00:00",
- "geoJson": {
- "coordinates": [
- 144.4913965,
- -37.9701481
], - "type": "Point"
}
}
]
}{ }