make parsing more typesafe and more tolerant of input in int or geonameid:int format