osbng.bng_reference.BNGReference.__lt__#
- BNGReference.__lt__(other: object)[source]#
Determines whether this
BNGReferenceis ordered beforeother.For two
BNGReferenceobjects, ordering is done in the following order:Rank by
resolution_metres, where higher resolutions are ordered first.Rank by
bng_ref_compactalphabetically.
Example
>>> BNGReference("SU") < BNGReference("SU1234") True >>> BNGReference("SU") < BNGReference("TU") True