Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pablobm/ordnance_survey_vs_the_world
Convert from easting/northing to latitude/longitude
https://github.com/pablobm/ordnance_survey_vs_the_world
Last synced: 15 days ago
JSON representation
Convert from easting/northing to latitude/longitude
- Host: GitHub
- URL: https://github.com/pablobm/ordnance_survey_vs_the_world
- Owner: pablobm
- Created: 2012-07-29T16:28:59.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-07-29T20:29:57.000Z (over 12 years ago)
- Last Synced: 2024-11-27T19:18:42.768Z (28 days ago)
- Language: Ruby
- Size: 99.6 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
# Ordnance Survey vs. The World
This little gem converts from the Bristish Ordnance Survey's own
easting/northing OSGB-36 coordinates to the WGS-84 latitude/longitude
we have come to know and love (and is used thoroughly in GPS,
Google Maps and all that stuff).# How to use
require 'ordnance_survey_vs_the_world'
easting = 531182
northing = 182409
gr = OrdnanceSurveyVsTheWorld::OSGridRef.new(easting, northing)
ll = gr.to_latlon
ll.lat # => 51.5248579430871
ll.lon # => -0.108828758467826# Why the long names?
Was feeling like it.
# License
Public Domain for yeah!