<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<blockquote
cite="mid:A376A455-0848-4C59-B8F2-B70FADA368B7@shaunmcdonald.me.uk"
type="cite">
<div>
<blockquote type="cite">
<div text="#000000" bgcolor="#FFFFFF"> When I see a question
like this, I immediately think : Overpass API , see
<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
<a moz-do-not-send="true"
href="http://wiki.openstreetmap.org/wiki/Overpass_API">http://wiki.openstreetmap.org/wiki/Overpass_API</a><br>
</div>
</blockquote>
</div>
<br>
<div>Um, I think it would be more useful to have a specific
example of using the Overpass API for this. It's not obvious
from the link you gave, unless I'm skimming through it too
quickly. Sarah's response was specific and far more useful!</div>
<div><br>
</div>
</blockquote>
I don't really believe in spoon feeding solutions, but rather point
to places so you can help yourself, next time you have a similar
problem, you save time and save yourself. So, it sounded like you
are asking : please solve my problem for me ...<br>
<br>
That being said, that page IS confusing to learn about Overpass
API, perhaps you could try a frontend on it like
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<a href="http://overpass-turbo.eu/">http://overpass-turbo.eu/</a> <br>
<br>
that would help seeing and trying some examples. I was just
bringing it to your attention that there is an API that is
specifically designed to extract small or large filtered datasets.<br>
<br>
But unless someone like Sarah has something lying around that could
match your problem, you will not going to get a lot of prechewed
solutions from others. <br>
<br>
When I asked in the past: How can I find all bread vending machine
in a country, someone pointed me to the overpass API and I helped
myself. You just need to play with it, it's very powerful, hence a
steep learning curve at first. Personally the path to find a
solution is as interesting to me as the solution itself.<br>
<br>
You can use overpass api to download the whole city. You should
first find id of the relation which defines the city (you can query
for it via overpass api if you do not have it in your system
already). For example Vuppertal has 62478. Then add 3600000000 to
the id and send and send the following POST request to
<a class="moz-txt-link-freetext" href="http://www.overpass-api.de">http://www.overpass-api.de</a>:<br>
<br>
<union><br>
<area-query ref="3600062478"/><br>
<recurse type="node-relation" into="rels"/><br>
<recurse type="node-way"/><br>
<recurse type="way-relation"/><br>
</union><br>
<print mode="body"/><br>
<br>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
To find the city relation send the following POST request to
<a class="moz-txt-link-freetext" href="http://overpass-api.de/api/interpreter">http://overpass-api.de/api/interpreter</a><br>
<br>
<query type="relation"><br>
<has-kv k="name" v="Wuppertal"/><br>
<has-kv k="type" v="boundary"/><br>
</query><br>
<print mode="body"/><br>
<br>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
if you want to be more restrictive you may add more filters like
de:place=city if you are only looking at Germany or admin_level=
something etc. If you want to get more results, you can only use the
name:<br>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<br>
<query type="relation"><br>
<has-kv k="name" v="Wuppertal"/><br>
</query><br>
<print mode="body"/><br>
<br>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
it is up to you, what do you consider "a city". I almost totally
ripped this off from a few stackoverflow answers which I googled for
you in 5 seconds...<br>
<br>
Glenn<br>
</body>
</html>