[Openstreetmap-dev] Another 0.3 API request.... search facility
Nick Whitelegg
Nick.Whitelegg at solent.ac.uk
Sun Feb 19 10:33:10 GMT 2006
Another 0.3 API request came to mind just now.... a search facility, by
key.
This would take the key to search on and the search string, and return a
list of nodes or segments which match the search string.
e.g
searchnodes?key=name&searchstring=Red Lion&bbox=-1.5,50.5,-1,51
would return all nodes called Red Lion in that bounding box.
searchnodes?key=class&searchstring=pub&bbox=-1.5,50.5,-1,51
would return all nodes with the 'class' key equal to 'pub' in that bounding
box.
searchnodes?key=class,name&searchstring=pub,Red Lion&bbox=....
would return all pubs called Red Lion in that bounding box.
Nick
More information about the dev
mailing list