OSRef constructor

OSRef(
  1. int easting,
  2. int northing
)

Creates a new OSRef object with a given easting and northing (e.g. 651409, 313177)

Implementation

OSRef(this.easting, this.northing) {
  this.numericalRef = "$easting $northing";
  this.letterRef = getLetterRef(easting, northing);
}