Skip to content

laprice/smalld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

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

About

A small daemon for running some geolocation services.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published