This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Bounding box with 4 coordinates polygon instead of min-max of Latitude and longitude

0

I am sure this doubt would have come to minds of many people but I found no questions asked on this. Is it possible to give the bounding box as a polygon of coordinates of 4 points like bbox(pt1 lat,pt1 long, pt2 lat,...pt4 long) instead of the standard format of (min long, min lat, max long, max lat). All the OSM and Overpass documents mention the one format for bounding box.

Is it the only format or there has been new additions to the way we mention the bounding box in the Overpass query.

asked 24 Oct '18, 12:45

user1894's gravatar image

user1894
11446
accept rate: 0%

edited 24 Oct '18, 12:50

I came across this which allows to give a polygon instead. Hope this helps someone in future

(24 Oct '18, 14:28) user1894

Source code available on GitHub .