POST /v2/geolocation
OpenAPI Specification
Get geolocation
Get estimated geolocation based on the information about surrounding Wi-Fi access points and/or cell towers
query Parameters
key | string API key, see Overview to learn how to get it |
Request Body schema: application/jsonrequired
sessionUUID required | string Session UUID. Should remain unchanged during the session of a user working with the service. |
captureTimestampUnix required | number <int64> >= 0 Time (in seconds) of getting information about observed cell towers, Wi-Fi access points and geolocation from the system |
Array of objects (wifiAccessPoint) Currently observed Wi-Fi access points | |
object (mobileNetwork) | |
ip | string External IP address of the device (should be passed if the request is sent not from the device directly but via an application backend) |
object Geolocation data obtained from a GNSS receiver. Used anonymously to improve service performance. |
Responses
Response Schema: application/json
state | string Value: "geoposition_located" |
statusCode | number Value: 200 |
object (predicted_location) |
Request samples
- Payload
Content type
application/json
{- "sessionUUID": "4dec3e75-8966-475a-9541-b4a8fbaaeda2",
- "captureTimestampUnix": 1624539922,
- "wifiAccessPoints": [
- {
- "lastSeenMs": 233,
- "macAddress": "a4:4c:c8:52:2a:20",
- "rttDistanceMm": 7,
- "signalStrengthDBm": -63.6,
- "ageMs": 369,
- "frequencyGHz": 2.4,
- "standard": "IEEE 802.11mc",
- "ssid": "Home Printer 1"
}
], - "mobileNetwork": {
- "homeMobileCountryCode": 505,
- "homeMobileNetworkCode": 217,
- "cellTowers": [
- {
- "lastSeenMs": 496,
- "cellID": 4321,
- "networkType": "string",
- "locationAreaCode": 19733,
- "ageMs": 766,
- "signalStrengthDBm": -71.3,
- "timingAdvance": 11
}
]
}, - "ip": "5.128.120.163",
- "gnssLocation": {
- "latitude": 52.953096,
- "longitude": 87.935501,
- "horizontalAccuracyM": 57,
- "altitudeM": 1297,
- "altitudeAccuracyM": 17,
- "course": 299.6,
- "courseAccuracy": 15.6,
- "groundSpeedMS": 36,
- "groundSpeedAccuracyMS": 11
}
}
Response samples
- 200
- 400
- 402
- 403
- 429
- 503
Content type
application/json
{- "state": "geoposition_located",
- "statusCode": 200,
- "location": {
- "latitude": 52.953096,
- "longitude": 87.235007,
- "accuracy": 19
}
}