LeoAdamek / gpstrace

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:GNU General Public License v3.0


Languages

Language:Go 100.0%