0

Given a closed polygon POLYGON((lon1 lat1, lon2 lat2, ...)), can we take buildings which are located within it. Or can we take buildings based on an area (like district with specific name) in India?

1
  • WKT uses (lon1 lat1, lon2 lat2,...) Commented Jan 26 at 22:10

1 Answer 1

0

This is two questions. I will address the first.

To define a polygon as a spatial filter, you can use the poly keyword and a list of lat lon pairs as a string.

(poly: "lat1 lon1 lat2 lon2 lat3 lon3 lat4 lon4 ... ..."); 

Notice there are no comma separators.

This query will return restaurants in the center of Paris.

[out:json][timeout:25]; ( node ["amenity"="restaurant"] (poly: "48.855575 2.324122 48.855575 2.359760 48.872156 2.359760 48.872156 2.324122 48.855575 2.324122"); ); out body; >; out skel qt; `` 

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.