I'm using overpy library to query overpass via python. I'd like to have a list of entities with a certain tags and their coordinates. For nodes this is straightforward. For closed ways (polygons) I'd just need the centroid lat/lon. Often those aren't stored in center_lat,center_lon, so I'm launching queries against the list of nodes associated to that ways entity. This query, using get_nodes, leads to a lot of HTTP errors (apparently overpy requires to launch queries again to get this). So, I'm wondering if there's a more efficient route to get what I need (and in the mean time don't bother the servers so much). asked 10 Oct '17, 16:53 WouterDX |