Skip to main content

Converts british national grid (OSBG36) to lat lon (WGS84) and vice versa.

Project description

🇬🇧 BNG ⇄ LatLon🌐


Converts british national grid eastings and northings (OSBG36) to latitude and longitude (WGS84) and vice versa as used by

Originally authored by Hannah Fry.

NEW! importable, installable, PEP8 styled, pure python, doctested, with optional numba compiler support for 10x speed


Package includes:

The mathematical theory used here is set out in "A guide to coordinate systems in Great Britain" by Ordnance Survey.


Get the latest stable release from PyPi:

pip install bng_latlon

optional but recommend is numba compiler

pip install numba


>>> from bng_latlon import OSGB36toWGS84
>>> OSGB36toWGS84(538890, 177320)
(51.477795, -0.001402)
>>> from bng_latlon import WGS84toOSGB36
>>> WGS84toOSGB36(51.4778, -0.0014)
(538890.1053, 177320.4965)

MIT licensed. Designed in the UK, published from Slovakia. Blocl Schools.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bng_latlon-1.1.tar.gz (6.1 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page