@staticmethod
    def naptan_dial(c):
        if c.isdigit():
            return c
        return unicode(min(9, (ord(c)-91)//3))
Convert a alphabetical NaPTAN code in the database to the numerical code
dataset/ETHPy150Open mollyproject/mollyproject/molly/apps/places/providers/naptan.py/NaptanContentHandler.naptan_dial