I could able to retrieve data using BoundingBoxes or GeocodeArea using over-pass API. While i want to get specific information from particular GeocodeArea i use
For BoundingBoxes I use like
How Can i prepare Overpass query condition that satisfies both BBox & GeocodeArea. Any Examples? Any Help would be appreciated. asked 05 Dec '15, 11:00 suri1983 |
You can simply combine multiple filters in one query statement. In the following example we're looking for all pubs in Cologne (inside relation 62578), which in addition are inside a given bounding box. The resulting query should look like this:
Overpass Turbo Link: http://overpass-turbo.eu/s/ddV If you leave out the answered 11 Dec '15, 17:32 mmd Thank you all. Its kind of fun with OSM.
(12 Dec '15, 18:14)
suri1983
1
@mmd, may i know why is the 36000 number is prefixed with relation id?
(27 May '16, 10:12)
yogi_ks
2
@yogi_ks: it's simply a convention which is only used for Overpass API: read more about it on the wiki page. By convention the area id can be calculated from an existing OSM way by adding 2400000000 to its OSM id, or in case of a relation by adding 3600000000 respectively
(27 May '16, 11:43)
mmd
|
As far as I know you can only limit one query by either bbox or area parameter ... there is no combination feature in overpass-api documentation.
But maybe you can do a difference between one result from the other and get a result you want. See http://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL#Difference