[OSM-dev] Problem with XAPI and ref based search
Grégory Bataille
gbataille.dev at gmail.com
Fri Nov 29 12:41:48 UTC 2013
hello everybody,
I have been trying to use OSM data for a while. basically, first, I'd like
to get the admin boundaries of France.
I start by asking XAPI to give me the France admin_level 2 object like so:
http://www.overpass-api.de/api/xapi?relation[boundary=administrative][admin_level=2][name=France]
this returns me the object, which contains among other things:
<member type="relation" ref="79981" role="outer"></member>
<member type="relation" ref="2202120" role="outer"></member>
<member type="relation" ref="2627308" role="outer"></member>
<member type="relation" ref="2177258" role="outer"></member>
so I want to dig down into these relations of course to get to the details
(ways and nodes). But I can't:
http://www.overpass-api.de/api/xapi?relation[ref=2202120] or
http://www.overpass-api.de/api/xapi?*[ref=2202120]
won't return anything. I have been spending a fair amount of time on this
and I can't figure it out.
Would you please be able to point me in the right direction?
thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20131129/8cf018d8/attachment.html>
More information about the dev
mailing list