[OSM-talk] Fwd: Search

OJW streetmap at blibbleblobble.co.uk
Sun Jul 9 13:31:58 BST 2006


Oops, sent this to steve instead of mailing list

>On Sunday 09 July 2006 12:53, SteveC wrote:
> Also keep an eye on the search page, I'm improving it atm

Talking of search, it would be good for the API itself to have some sort of
filter/search mechanism

e.g. "get railway=rail and railway=station within bounding box [coords]" if
you wanted to create a railway map, but not download any roads.

or "get Name=*" to download anything with miscapitalised tags, so you can fix
them all at once

or "get amenity=fuel" if you're want to develop a competitor to
petrolprices.com, which returns a list of fuel stations' node IDs so that
site can easily update their prices without downloading the whole dataset.

The search engine could then just be an interface to the same mechanism, so
 it translates a search for "pubs in covent garden" to an API call like "get
 amenity=pub within bounding box [coords]" (having previously done a "get
 name=Covent Garden and type=node" to find the relevant search area)

Regards

OJW




More information about the talk mailing list