Hi.<br><br>Isn't that pretty much what the current OSM namefinder attempts to do?<br><br>e.g. a search for "park near Sydney" or "toilet near Sydney"<br><br> - Ben.<br><br><div class="gmail_quote">2009/8/17 James Livingston <span dir="ltr"><<a href="mailto:doctau@mac.com">doctau@mac.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>I'll have a look around to see what's already been done for this, but<br>
it shouldn't be too hard to. If the search is of the form 'X near Y'<br>
then do a place lookup on Y, and if you find Y, then look for nearby<br>
nodes with:<br>
* X is of the form "some text", then look for name=some text<br>
* X is of the form a=b;c=d then look for those (as a power-user thing)<br>
* otherwise use a table of mapping, e.g. toilets -> amenity=toilet,<br>
lakes -> natural=water<br>
<br></blockquote></div><br><br>