To find the definition of a locality code , given a codeDayNotes instance :
D
D.lookupLoc(code)
If the code is defined, the method returns its definition
as a Loc instance; see Section 11, “class Loc: Locality code definition”.
If the code is not defined, the method raises a KeyError exception.