Overpass-API icon indicating copy to clipboard operation
Overpass-API copied to clipboard

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

Open sylvain-m opened this issue 2 years ago • 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

sylvain-m avatar Mar 14 '23 11:03 sylvain-m

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

mmd-osm avatar Mar 19 '23 10:03 mmd-osm

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.

drolbr avatar Apr 01 '23 20:04 drolbr