drolbr/Overpass-API

Query by polygon (poly) : tool to get polygon syntax ?

sylvain-m opened this issue · 2 comments

Hello,

The polygon search tool [1] is efficient, but the syntax used to specify the geometry is not very common:
(poly:"latitude_1 longitude_1 latitude_2 longitude_2 latitude_3 longitude_3 …");

Generally, geometries are displayed in Long/Lat (X/Y), and here it is the opposite.
Do you know of a simple tool (e.g. online) to build the geometry text string accepted by the API?

Thanks for your help!

[1] https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL#By_polygon_.28poly.29

I'd suggest to refer to the OSM community site for this kind of how to question, as it's neither a bug nor a feature report and thereby not really suitable for this Github repo: https://community.osm.org

Side remark: most tools I use prefer Lat-Lon. The format has been modeled after a then very common tool to produce polygon coordinates. That one had precisely the used format.