def build_POIs((id, string)):
    queue = build_POIs.queue
    refs, tags = json.loads(string)
    polygon = build_polygon(refs)

    if polygon and polygon.is_valid:
        tags['POI_AREA'] = polygon.area * 1000000
            # just for ease of use

        if tags['POI_AREA'] > 0.0:
            centroid = polygon.centroid

            feature = {
                'type': 'Feature',
                'geometry': {
                    'type': 'Point',
                    'coordinates': [
                        float("%.5f" % centroid.x),
                        float("%.5f" % centroid.y)]},
                'properties': tags
            }

            queue.put(json.dumps(feature))
            # return id
            # that id would be a good way to count for a progress indicator
dataset/ETHPy150Open aaronlidman/openstreetPOIs/osmpois.py/build_POIs/original