/gpstrace

A (very) simple app for recording where the things be at

Primary LanguageGoGNU General Public License v3.0GPL-3.0

GPSTrace

A (very) simple app for devices to post their position to and users to view a history of that location on a map.

Running

Configuration (Toml)

[postgres]
url = "postgresql://user:password@host/db?sslmode=disable"

[http]
listen = ":8080"

Run

./gpstrace

Adding Data

Note: All headers are optional, the server will only accept application/x-www-form-urlencoded data.

POST localhost:8080/data
Content-Type: application/x-www-form-urlencoded

ent=Some Device Name&lat=N 1 2 3.45&lng=W 1 2 3.45

Reading Data

GET localhost:8080/data