Select to view content in your preferred language

ArcGIS Online and GeoTab API for live tracking as feature layer

1829
11
05-26-2023 11:05 AM
Labels (1)
RobynSnookCCB
Regular Contributor

My organization is using GeoTab to track vehicles. We are looking to bring in the live location tracking into ArcGIS Online ideally as a feature layer to place on webmaps to track transit and such.

GeoTab basically came back to us and said we need to built our own code using their API. We don't have a developer in the organization and my coding is limited. Has anyone accomplished this before? I'm also very curious as to where to house the code so it runs regularly and connects. 

0 Kudos
11 Replies
ZachBray
Emerging Contributor

Forgot to add, after making the DeviceStatusInfo request you will get a result with the devices Latitude and Longitude like:

{
    "result": [
        {
            "bearing": 284,
            "currentStateDuration": "00:03:07",
            "exceptionEvents": [],
            "isDeviceCommunicating": false,
            "isDriving": false,
            "latitude": 38.2800636,
            "longitude": -79.2079391,
            "speed": 92,
            "dateTime": "2024-01-04T12:53:00.000Z",
            "device": {
                "id": "b55"
            },
            "driver": "UnknownDriverId",
            "isHistoricLastDriver": false,
            "groups": [
                {
                    "id": "b27D6"
                },
                {
                    "id": "b27E0"
                },
                {
                    "id": "GroupVehicleId"
                },
                {
                    "id": "GroupManuallyClassifiedPowertrainId"
                }
            ]
        }
    ],
    "jsonrpc": "2.0"
}
0 Kudos
RobynSnookCCB
Regular Contributor

 Thanks, I was able to get the same results using Geotabs api runner. I guess my question is how to get this into ArcGIS Online to have live tracking available. 

0 Kudos