go-www-geotag

A web application, written in Go, for geotagging images.
Important
This is work in progress, including the documentation. In the meantime please have a look at the Geotagging at SFO Museum series of blog posts.
$> make cli
go build -mod vendor -o bin/server cmd/server/main.go
server
$> ./bin/server -h
-crumb-uri string
A valid aaronland/go-http-crumb.Crumb URI for generating (CSRF) crumbs. If the value is 'auto' then a random crumb URI will be generated. (default "auto")
-custom-placetypes string
A JSON-encoded string containing custom placetypes defined using the syntax described in the whosonfirst/go-whosonfirst-placetypes repository.
-disable-writer-crumb
Do not require a valid CSRF crumb for all writes.
-enable-custom-placetypes
Enable wof:placetype values that are not explicitly defined in the whosonfirst/go-whosonfirst-placetypes repository.
-enable-editor
Enable the geotagging editor interface. (default true)
-enable-map-layers
Enable use of the leaflet-layers-control Leaflet control element for custom custom map overlays.
-enable-oembed
Enable oEmbed lookups for images.
-enable-placeholder
Enable use of the Placeholder API for location searches.
-enable-point-in-polygon
Enable point-in-polygon lookups for results.
-enable-proxy-tiles
Enable the use of a local tile proxy for Nextzen map tiles.
-enable-writer
Enable output of the leaflet-geotag plugin to be written to a go-www-geotag/writer.Writer instance.
-enable-writer-cors
Enable CORS support for the writer endpoint.
-initial-latitude float
A valid latitude for the map's initial view. (default 37.61799)
-initial-longitude float
A valid longitude for the map's initial view. (default -122.370943)
-initial-zoom int
A valid zoom level for the map's initial view. (default 15)
-is-wof
Input data is WOF-flavoured GeoJSON. (Pass a value of '0' or 'false' if you need to index non-WOF documents. (default true)
-iterator-uri string
A valid whosonfirst/go-whosonfirst-iterate/emitter URI. Supported schemes are: directory://, featurecollection://, file://, filelist://, geojsonl://, repo://. (default "repo://")
-map-renderer string
Valid options are: protomaps, tangramjs (default "tangramjs")
-nextzen-apikey string
A valid Nextzen API key
-nextzen-style-url string
A valid URL for loading a Tangram.js style bundle. (default "/tangram/refill-style.zip")
-nextzen-tile-url string
A valid Nextzen tile URL template for loading map tiles. (default "https://{s}.tile.nextzen.org/tilezen/vector/v1/512/all/{z}/{x}/{y}.mvt")
-oembed-endpoints string
A comma-separated list of valid oEmbed endpoints to query.
-path-editor string
A relative path for the geotag editor application. (default "/")
-path-point-in-polygon string
The URI for point-in-polygon API requests. (default "/point-in-polygon/")
-path-point-in-polygon-data string
The URI for point-in-polygon data requests. (default "/point-in-polygon/data/")
-path-proxy-tiles string
The URL (a relative path) for proxied tiles. (default "/tiles/")
-path-writer string
A relative path for sending write updates. (default "/update")
-placeholder-endpoint string
A valid Placeholder API endpoint to query.
-properties-reader-uri string
A valid whosonfirst/go-reader.Reader URI. Available options are: [file:// fs:// null://]
-protomaps-tile-url string
A valid Protomaps tile URL for loading map tiles.
-protomaps-tiles-path string
The leading prefix for Protomap tile URLs. (default "/pmtiles/")
-proxy-tiles-cache-uri string
A valid tile proxy DSN string. (default "gocache://")
-proxy-tiles-test
Ensure outbound network connectivity for proxy tiles
-proxy-tiles-timeout int
The maximum number of seconds to allow for fetching a tile from the proxy. (default 30)
-server-uri string
A valid aaronland/go-http-server.Server URI for creating an application server. (default "http://localhost:8080")
-spatial-database-uri string
A valid whosonfirst/go-whosonfirst-spatial/data.SpatialDatabase URI. options are: [sqlite://]
-verbose
Be chatty.
-writer-cors-allowed-origins string
A comma-separated list of origins to allow for CORS support. (default "*")
-writer-uri string
A valid go-www-geotag/writer.Writer URI for creating a writer.Writer instance. (default "stdout://")
See also