Extends
- LatLon
Methods
toOsGrid() → {OsGridRef}
Converts latitude/longitude to Ordnance Survey grid reference easting/northing coordinate.
- Source:
Returns:
OS Grid Reference easting/northing.
- Type
- OsGridRef
Example
var p = new LatLon(52.65798, 1.71605);
var grid = OsGridRef.latLonToOsGrid(p); // TG 51409 13177
// for conversion of (historical) OSGB36 latitude/longitude point:
var p = new LatLon(52.65757, 1.71791, LatLon.datum.OSGB36);