Property | Type | Description | |
---|---|---|---|
$easting | |||
$northing |
Method | Description | |
---|---|---|
OSRef ( $easting, $northing ) | Create a new OSRef object representing an OSGB grid reference. Note that the parameters for this constructor require eastings and northings with 1m accuracy and need to be absolute with respect to the whole of the British Grid. For example, to create an OSRef object from the six-figure grid reference TG514131, the easting would be 651400 and the northing would be 313100. | |
toLatLng ( ) | Convert this grid reference into a latitude and longitude | |
toSixFigureString ( ) | Convert this grid reference into a string using a standard six-figure grid reference including the two-character designation for the 100km square. e.g. TG514131. | |
toSplitString ( ) | ||
toString ( ) | Convert this grid reference into a string showing the exact values of the easting and northing. |
public OSRef ( $easting, $northing ) |
public toLatLng ( ) |
public toSixFigureString ( ) |
public toString ( ) |