Class: LatLon_OsGridRef

LatLon_OsGridRef()

Extends LatLon class with method to convert LatLon point to OS Grid Reference.

Constructor

new LatLon_OsGridRef()

Source:

Extends

  • LatLonEllipsoidal

Methods

convertDatum()

Override LatLonEllipsoidal.convertDatum() with version which returns LatLon_OsGridRef.
Source:

toOsGrid() → {OsGridRef}

Converts latitude/longitude to Ordnance Survey grid reference easting/northing coordinate.
Source:
Returns:
OS Grid Reference easting/northing.
Type
OsGridRef
Example
const grid = new LatLon(52.65798, 1.71605).toOsGrid(); // TG 51409 13177
  // for conversion of (historical) OSGB36 latitude/longitude point:
  const grid = new LatLon(52.65798, 1.71605).toOsGrid(LatLon.datums.OSGB36);