Exemplo n.º 1
0
def populatepolygon(latlong_dict):
    """build a travelpolygon given a list of dicts containing the keys 'longitude' and 'latitude'

    latlong_dict -- list of dicts
    """
    polygon = TravelPolygon()
    polygon.populate(latlong_dict)
    return polygon