def cantons_from_geonames_answer(answer):
    """
    reads the canton abbreviations from the geonames answer
    returns: the canton abbreviations for a given query answer
    """
    #print(answer)
    canton_abbrevs = []
    for res in answer['geonames']:
        canton_abbrevs.append(res['adminCode1'])
    return canton_abbrevs