dp-map-renderer

module
v0.0.0-...-f3c94dc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2018 License: MIT

README

dp-map-renderer

Renders an SVG representation of a choropleth map given a topojson file and data.

Environment variable Default Description
BIND_ADDR :23500 The host and port to bind to
CORS_ALLOWED_ORIGINS * The allowed origins for CORS requests
SHUTDOWN_TIMEOUT 5s The graceful shutdown timeout (time.Duration format)
Endpoints
url Method Parameter values Description
/render/{render_type} POST render_type = html Renders the (json) data provided in the post body as an html figure with svg content
Healthchecking

Currently reported on endpoint /healthcheck. There are no other services consumed, so it will always return OK.

Contributing

See CONTRIBUTING for details.

License

Copyright © 2018, Office for National Statistics (https://www.ons.gov.uk)

Released under MIT license, see LICENSE for details.

Some of the transformation of geojson to svg is based on original work by Fabian Prein: geojson2svg

Directories

Path Synopsis
cmd
dp-map-renderer command
Package geojson2svg provides the SVG type to convert geojson geometries, features and featurecollections into a SVG image.
Package geojson2svg provides the SVG type to convert geojson geometries, features and featurecollections into a SVG image.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL