Module: src/getLowerResGrs

Methods

(static) getLowerResGrs(gr) → {object}

Given a grid reference (British National Grid, Irish Grid, UTM zone 30N shorthand), return an object with a corresponsing GR for each precision. For all precisions higher than the precision of the passed in GR, the return GR is set to null. In the special returned Quadrant (5 km) grid references are in an array to allow for the case where the input grid reference is a tetrad and overlaps more than one quadrant.
Parameters:
Name Type Description
gr string Grid reference.
Source:
Returns:
- of the form {p100000: 'gr-100km', p10000: 'gr-hectad', p5000: ['gr_quad1', ...], p2000: 'gr-tetrad', ...}, with a property for each precisions.
Type
object