Created
October 13, 2014 09:50
-
-
Save xpqz/7da6ac91583610543bf3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OsGridRef.toWGS84 = function(str) { | |
var grid = OsGridRef.parse(str); | |
var pOSGB36 = OsGridRef.osGridToLatLon(grid); | |
var pWGS84 = pOSGB36.convertDatum(LatLonE.datum.WGS84); | |
var latlon = pWGS84.toString(format="d"); | |
return latlon; | |
} | |
var convert = function(str) { | |
return OsGridRef.toWGS84(str) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment