:param pos: A dictionary with {'latitude': 8.12, 'longitude': 42.6}
    :param bobj: An object which has a 'get' method and returns a dictionary.

def main(pos, bobj=None):
    """
    :param pos: A dictionary with {'latitude': 8.12, 'longitude': 42.6}
    :param bobj: An object which has a 'get' method and returns a dictionary.
    """
    city, distance = get_city(pos, bobj)
    city = get_city_from_file(city['linenr'])
    print("The city '%s' is about %0.2fkm away from your location %s" %
          (city['asciiname'], distance/1000.0, str(pos)))
    for key, value in sorted(city.items()):
        print("%s: %s" % (key, value))