Paul Cager c5c04d7942 Add license
2020-12-07 21:56:36 +00:00
2020-12-07 18:24:59 +00:00
2020-12-07 09:59:24 +00:00
2020-12-07 10:16:30 +00:00
2020-12-07 18:24:59 +00:00
2020-12-07 21:56:36 +00:00
2020-12-07 18:24:59 +00:00
2020-12-07 10:16:30 +00:00
2020-12-07 21:54:05 +00:00

osgrid-server - Ordnance Survey Grid Ref Converter

This project implements a simple REST server to expose the excellent https://www.movable-type.co.uk/scripts/latlong-os-gridref.html Ordnance Survey grid reference conversion utilities.

Usage

The easiest way to avoid environmental or Node versioning problems is to start the server using Docker:

docker run -d --rm --name osgrid-server -p 9090:9090 paulcager/osgrid-server

A grid reference may then be converted to a lat /lon:

$ curl http://localhost:9090/gridref/SU3724515505
50.93779289256305,-1.471309033422234

Or a lat/lon converted to a grid reference:

$ curl http://localhost:9090/latlon/50.9378,-1.4713
SU 37245 15505
S
Description
REST server to translate OSGB grid refs to lat / lon and vice-versa
Readme MIT 48 KiB
Languages
Go 88.4%
Makefile 8.9%
Shell 2.7%