https://github.com/chilume/cord-convert
Golang HTTP client library to convert British National Grid (BNG) aka National Grid Reference (NGR) to latitude and longitude (lat/long WGS84) or vice versa.
https://github.com/chilume/cord-convert
bng client-library geocoder-library golang gps-converter gps-coordinates national-grid-reference
Last synced: 3 months ago
JSON representation
Golang HTTP client library to convert British National Grid (BNG) aka National Grid Reference (NGR) to latitude and longitude (lat/long WGS84) or vice versa.
- Host: GitHub
- URL: https://github.com/chilume/cord-convert
- Owner: chilume
- License: apache-2.0
- Created: 2020-03-14T01:44:11.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-08T23:33:08.000Z (almost 6 years ago)
- Last Synced: 2024-06-20T15:58:38.075Z (about 2 years ago)
- Topics: bng, client-library, geocoder-library, golang, gps-converter, gps-coordinates, national-grid-reference
- Language: Go
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# Cord-convert
[Coordinate converter](https://www.bgs.ac.uk/data/webservices/convertForm.cfm#decimalLatLng) is a webservice to Convert British National Grid (BNG) formerly known as the National Grid Reference (NGR) to latitude and longitude (lat/long WGS84) or vice versa.
This is a Golang HTTP client libary for conversions.
# Usage
Please look into the [example](example_test.go) code on how to use the client library.
# Testing
Run the below command to test.
```
go test ./... -v -cover
```
## TODO
- Add support to convert degrees, seconds and minutes to BNG