[OSM-dev] Overpass API areas
Jais Pedersen
jais at pedersens.net
Sat Feb 11 12:10:00 GMT 2012
I'm trying to get all nodes with a place tag in the Vietnamese province
Dong
Thap (relation id 1875866), but i don't get any result using:
<query type="node">
<area-query ref="3601875866"/>
<has-kv k="place"/>
</query>
<print mode="meta"/>
and if I request the areas for one of the towns in that province (Sa Dec
node id
369503214) using this:
<coord-query lat="10.2943724" lon="105.7588116"/>
<print mode="body"/>
i only get the Vietnam relation (id 49915).
If i ask for all the nodes with a place tag in Vietnam like this:
<query type="node">
<area-query ref="3600049915"/>
<has-kv k="place"/>
</query>
<print mode="meta"/>
I get what i expect. If i test the example on in the documentation:
<coord-query lat="51.25" lon="7.15"/>
<print mode="body"/>
I get several administrative relations.
What am I doing wrong? or what is wrong with the Dong Thap relation?
I have been using http://overpass.osm.rambler.ru/query_form.html for
testing the
queries since the examples in the forms/buttons in the documentation does
not
seem to work correctly.
/Jais
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20120211/241d160d/attachment.html>
More information about the dev
mailing list