Ruby implementation of conversion between Latitude/Longitude and OS National Grid Reference point?

Posted by Harry Wood on Stack Overflow See other posts from Stack Overflow or by Harry Wood
Published on 2010-05-26T10:17:28Z Indexed on 2010/05/26 10:21 UTC
Read the original article Hit count: 225

Filed under:
|
|

For converting between Latitude/Longitude and UK's Ordnance Survey National Grid eastings and northings, this seems to be the most popular explanation and reference implementation in JavaScript: http://www.movable-type.co.uk/scripts/latlong-gridref.html

The web is littered with other implementations in different languages. Making the conversion via PostGIS queries is another alternative.

...but did anyone implement this maths in ruby?

OSGridToLatLong is the direction I'm looking for just at this moment, but I would have thought a library for converting in both directions must surely be available in a gem somewhere. I'm just not searching for the right thing.

© Stack Overflow or respective owner

Related posts about ruby

Related posts about geospatial