Get User Work Location API

This API will provide the list of insights with boundary coordinates of the location, last visited detail, type and confidence for the user’s work.

get
Get Work Insight API

https://api.roam.ai/v1/api/insights/work/
Request
Response
Request
Headers
Api-key
required
string
Auth-key E.g.- 33223kjhdcscijhb5sdbsdmjsdcbj5f
Query Parameters
user_id
required
string
Get Work location for the user. E.g.- 5d9450ace47bae6d70064a9b
Response
200: OK
{
"status": true,
"msg": "Success.",
"code": 200,
"data": {
"user_id": "5f30d339b36114713d8b610e",
"app_id": "5ed0e627372279444054d310_2",
"work": [
{
"id": "5f3fa9c6b361144e2fbb94ff",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
4.907285075174389,
52.36281525332162
],
...
...
[
4.907603638813551,
52.36278444174071
]
]
]
},
"last_visited": {
"id": "5f3bc1fc118fe82b1a623751",
"coordinates": {
"type": "Point",
"coordinates": [
4.907237518324856,
52.36199951171875
]
},
"accuracy": null,
"altitude": -0.5668405294418335,
"recorded_at": "2021-06-17T08:31:24.594",
"started_at": null,
"created_at": "2021-06-18T11:56:44.237"
},
"tz_offset": "+0200",
"confidence": "Medium",
"type": "work",
"created_at": "2021-06-21T11:02:28.295"
}
]
}
}

Sample Request

curl --location --request GET 'https://api.roam.ai/v1/api/insights/work/?user_id=5f30d339b36114713d8b610e' \
--header 'Api-key: ee5b950fdf284474a8727409cd12bb3b'