[OSM-talk] planet.osm powered "where am I"
Nick Burch
openstreetmap at gagravarr.org
Sun Jul 30 19:46:13 BST 2006
On Tue, 25 Jul 2006, Nick Burch wrote:
> On Tue, 25 Jul 2006, Immanuel Scholz wrote:
>> Cool stuff. Can you categorize what you want to have? As example "All nodes
>> with tag 'buisiness=baker' or something like that? ;)
>
> Not in this version. It shouldn't be too hard to add, but I'll probably
> end up pushing the tag filtering into SQL (it's done in python for now).
OK, this is now supported. You can give any of:
* places
* roads
* node_type=<> eg node_type=amenity
* node_type=<>&node_value=<> eg node_type=amenity&node_value=pub
> As part of that, I'll probably split out the database code from the
> rendering code. That'll also have the advantage that other people can
> re-use it if they're doing planet.osm sql stuff in python. Anyone think
> that might be handy for them?
I've done this splitting out. Might need a few more methods adding to make
it more generally useful. Current code is at
http://gagravarr.org/code/mini_osm.py
if anyone wants to take a look
>> Is there any specific reason why you don't export in OSM-xml format? (I
>> mean, any other reason than "this one looks simplier for roads" ;)
>
> It looked a bit heavy-weight for my needs (which are either a website,
> or something really simple for use by other apps). It shouldn't be too
> hard to support it as well, if anyone would actually find it useful!
This is also now supported. Just give format=osm
I've also noticed that either the bounding box calculation is wrong, or
the distance finder is. I'll need to check that out, but for now, you
might need to give a bigger distance than you want (eg distance=850 to
find things reported as being 600m away)
Nick
More information about the talk
mailing list