On-demand location requests (developer question)

John Martinez4 years ago

Hello,

I am looking into integrating a new kind of tracker.

Our device can deliver GPS coordinates in the form of periodic, unsolicited "breadcrumbs" - which is how most GPS trackers work. But we can also operate in a mode where we operate in a constant low-power mode, and we only wake up when a location is requested over the network (think of maybe a pet tracker, where you don't care where the dog is until it's lost,) and in this mode, the battery can last for months or even years.

My question is: is the general concept of "on-demand location requests" something that is architecturally supported in traccar? (i.e. is there a UI on the server that can have an optional 'locate' button which would then call some custom code to send an http request, or an mqtt message, or whatever, in order to request a location from a particular device?)

Anton Tananaev4 years ago

Traccar does support commands and "request location" is one of the available commands.