owntracks / ios

OwnTracks' iPhone App
http://owntracks.org
Other
337 stars 91 forks source link

Location information in "transition" event is obsolete #806

Open jbrepogmailcom opened 2 months ago

jbrepogmailcom commented 2 months ago

Hello.

When entering zone (or a waypoint), OwnTracks sends two mqtt events. A "transition" and a "location" events, sent at same time. Both contain location data. While location data in "location" event is correct and show exact position of entering zone, the location data in "transition" event are not from time of transition but from previous "location" event, which may be many kilometers away.

It may create confusion as that device had location at time sent in "transition" data, but device actually was not there. Is this by design or a bug?

jpmens commented 2 months ago

By rights, the transition event contains the coordinates where the event fired which, indeed, can differ from those in the subsequent location.