The following query should return all the nodes with k value town, village or city withing the given bound box and no more further than 4500 from way referenced E 40. However in xml result there is no "city" values. When I cut out <union> with "town" and "village" query and search only for those with key value "city" then the result is ok . I wonder what is the reason. Regards asked 02 Mar '15, 13:43 huberttt |
The "around" block in each query is relative to the preceding statement. The query block for "town" looks around the "E40". The next query block looks around the results of the "town" query block and so on. One solution would be to use a variable instead, i.e.:
This is the query you probably intended. The other, and probably more efficient solution is the one from the comment of baghaii. answered 03 Mar '15, 07:14 Roland Olbricht |
This is really odd. When I ran it as you have written above, I only received town results. If I eliminate town I receive some but not all city and village results.
gives you a more inclusive set of results, but I am not sure if it is right or not.
Yes, I have already managed to write same code myself. Thank you for your response anyway. I still just don't know where is the problem in my previous query