How are driver location webhook events triggered?

Hi Team!

I am looking to start using the Stuart API and I will need to know the location of the driver at any point of time.

I can see the API exposes “Driver location updated event”. When exactly is that event triggered? And how often? I will need to be able to track the driver location on-demand.

Thanks,

Ionic

Hello Ionic,

This webhook is triggered every time the Mobile Application used by the courier sends to us a valid location. The frequency really depends on the stage of the delivery, how fast the courier is driving, etc.

You should expect to receive driver location updates several times per minute when the courier is driving, and less if he’s standing still.

You can always get the latest known location of a courier by calling the GET job endpoint, but this location will be exactly the same location we sent to you through the WebSocket.

Thanks,