drolbr / Overpass-API

A database engine to query the OpenStreetMap data.
http://overpass-api.de
GNU Affero General Public License v3.0
690 stars 90 forks source link

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

Open sylvain-m opened 1 year ago

sylvain-m commented 1 year ago

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

mmd-osm commented 1 year ago

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

drolbr commented 1 year ago

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.