geofence-service

command
v0.34.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2026 License: AGPL-3.0 Imports: 16 Imported by: 0

README

geofence-service

Lokaler Geofencing-Dienst mit TinySQL, GeoJSON-Zonen und kleinem Browser-Frontend.

go run ./cmd/geofence-service
# http://localhost:8091

Positionen können auch von Geräten oder Integrationen gemeldet werden:

curl -X POST http://localhost:8091/api/positions \
  -H 'Content-Type: application/json' \
  -d '{"vehicle_id":1,"lon":11.58,"lat":48.13}'

Ein erster Punkt setzt lediglich den Anfangszustand. Danach erzeugt jeder Eintritt oder Austritt ein dauerhaftes geofence_events-Ereignis. Die Daten liegen standardmäßig in geofence.db; mit -dsn mem:// läuft der Dienst nur temporär.

Documentation

Overview

Command geofence-service is a small, persistent GPS geofencing service with a browser UI. It is intentionally useful without any cloud dependency: a device can POST positions, operators manage GeoJSON zones, and entry/exit events remain queryable in the local TinySQL database.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL