This is a micro-service. It accepts GET requests that contain a geolocation and return a data structure expressing labels for the the location queried.
Additionally it provides a feed of queries and responses that can be displayed.
The two functions are presented as http endpoints:
location/ accepts GET or POST with variables (lat, lon, acc, label)
events/ accepts GET and returns a feed of Server Sent Events
smalld requires a postgres database with the postgis extensions installed.
It aquires its configuration from the following environment variables:
SMALLD_DB_CONNECTION : a database connection string as specified in database/sql
SMALLD_URL_BASE : a string containing the prefix you wish to use for generating urls in responses
