traccar / traccar-web

Traccar GPS Tracking System
https://www.traccar.org
Apache License 2.0
792 stars 1.1k forks source link

[FEATURE REQUEST] Geofences update trought API with websocket #710

Open nimarosa opened 5 years ago

nimarosa commented 5 years ago

Hello, i will be working in this feature, and i want to let this feature request to know if someone is interested in this.

Now, its possible to add geofences via the rest API, but the geofences will not be shown in the map if you dont reload the page. Thats because web-socket its only used to update locations, anything else will be updated in database and loaded when you refresh the page.

I plan to use the method which control the geofences added via the website, to do the same with the geofences added via the api. I would probably need some way to notify the front that the a new geofence is added via the api, and then display it in real time.

If someone is interested in this feature, let me know, and maybe we can work together.

Thanks and Regards.

victorferreira commented 5 years ago

@nicolasrsande are you planning to do it on the new web interface of the old one?