Giter VIP home page Giter VIP logo

nnng's Introduction

nnng

“No! Not National Grid!”

Coordinate transformation between OSGB36 and WGS84 in JavaScript. Uses the Proj4js library.

Usage

$ npm install --save nnng

Example

var nnng = require("nnng");

nnng.from(651409, 313177);
// [ 52.65797660129558, 1.716038442825891 ]

nnng.to(52.6579, 1.71603);
// [ 651408.871587621, 313168.4539022284 ]

Documentation

nnng.from(x, y)

Takes an OSGB36 grid reference, or northing/easting. Returns a WGS84 longitude/latitude.

nnng.to(lon, lat)

Takes a WGS84 longitude/latitude. Returns an OSGB36 grid reference, or northing/easting.

About

Made by Miëtek Bak. Published under the MIT X11 license.

nnng's People

Contributors

mietek avatar

Stargazers

Gerry Casey avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.