Categorygithub.com/ONSdigital/dp-maps-api
modulepackage
0.3.0
Repository: https://github.com/onsdigital/dp-maps-api.git
Documentation: pkg.go.dev

# README

dp-maps-api

Maps API for the ONSWebsite. Provides OS maps.

Getting started

  • Run make debug

Note: In order to use the proxy, you will need an O/S access key defined in your environment or by running.

  • ORDNANCE_SURVEY_API_KEY=abcxyz123 make debug (replacing abcxyz123 with your own key)

Dependencies

  • No further dependencies other than those defined in go.mod

Configuration

Environment variableDefaultDescription
BIND_ADDRlocalhost:27900The host and port to bind to
GRACEFUL_SHUTDOWN_TIMEOUT5sThe graceful shutdown timeout in seconds (time.Duration format)
HEALTHCHECK_INTERVAL30sTime between self-healthchecks (time.Duration format)
HEALTHCHECK_CRITICAL_TIMEOUT90sTime to wait until an unhealthy dependent propagates its state to make this app unhealthy (time.Duration format)
ORDNANCE_SURVEY_API_URL"https://api.os.uk/"The URL for the Ordnance Survey API
ORDNANCE_SURVEY_API_KEYThe access key for the Ordnance Survey API

Note: To obtain an Ordnance Survey access key, you will need access to a project on the O/S Data Hub.

Contributing

See CONTRIBUTING for details.

License

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

Released under MIT license, see LICENSE for details.

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

BuildTime represents the time in which the service was built.
GitCommit represents the commit (SHA-1) hash of the service that is running.
Version represents the version of the service that is running.