[OSM-dev] Feature Query update

Christopher Schmidt crschmidt at metacarta.com
Sat Dec 2 15:12:09 GMT 2006


For Talk:

The feature query in the MetaCarta Labs OSM browser now properly
supports areas (parks, etc.) and nodes (pubs, etc.)

  http://labs.metacarta.com/osm/?lat=6674493&lon=-25094&zoom=15&layers=B

Give it a try!

For Dev:

The interface for the query makes the data available via a JSON
callback:

http://labs.metacarta.com/osm/query.cgi?bbox=-135504.203372,6907795.267911,-134752.970866,6908022.19029

You can add this type of data to your page via:

s = document.createElement('script');
s.src="http://labs.metacarta.com/osm/query.cgi?bbox=-135504,6907795,-134752,6908022";
document.getElementsByTagName("head")[0].appendChild(s);

When the data is loaded, it will be passed to a query_callback function
in javascript.

This means that you can use this data in any of your other mapping
mashups or applications.
 
Regards, 
-- 
Christopher Schmidt
MetaCarta




More information about the dev mailing list