@firstclasspostcodes/osgb

0.0.4 • Public • Published

OSGB

This tiny JS library is used as a helper library to convert between both OSGB and WGS84 geo-cordinate systems. It provides two exported functions toLatLng() and toEastingNorthing().

Installation

The CLI can be installed globally, using:

npm i -g @firstclasspostcodes/osgb

Usage

const { toLatLng, toEastingNorthing } = require('@firstclasspostcodes/osgb');

const position = {
latitude: 51.5018949,
  longitude: -0.2107977,
};

const osgb = toEastingNorthing(position);

const { easting, northing } = osgb;

const wgs84 = toLatLng({ easting, northing });

Readme

Keywords

none

Package Sidebar

Install

npm i @firstclasspostcodes/osgb

Weekly Downloads

0

Version

0.0.4

License

MIT

Unpacked Size

33.5 kB

Total Files

15

Last publish

Collaborators

  • davidkelley