OpenStreetBrowser/API

From OpenStreetMap Wiki
Jump to navigation Jump to search

List of Objects

Some of this information is likely to change with the next version, the idea is to provide user defined categories.

Request

http://www.openstreetbrowser.org/list.php?[options]

Available Options:

viewbox=left,top,right,bottom The viewbox where you want to list objects (coordinates have to be in Google Maps projection right now) Example: viewbox=1820510.3,6140479.7,1821443.1,6139601.9
category=cat1,cat2 List of categories Example: category=leisure/leisure,services/health
exclude=el1,el2 Exclude the list of objects from the result Example: node_12345,rel_2000,way_75667398
count=10 Count of objects per category to be found

Result

http://dev.openstreetbrowser.org/list.php?viewbox=1821025.9831924,6148388.0406013,1822231.0607162,6147909.1148461&zoom=17&category=leisure_leisure&count=10

<?xml version="1.0" encoding="UTF-8"?>
<results generator="OpenStreetBrowser">
<request viewbox="1821025.9831924,6148497.3216652,1822231.0607162,6147799.8337822" zoom="17" category="leisure_leisure" state="2011-04-27T07:14:40+02:00"/>
<category id="leisure_leisure" version="c74b7a0c63f9a7900fbe78b5641e0c35e84f02bf" complete="true">
<match id="way_26932622" rule_id="5">
  <tag k="name" v="Hohe Warte Stadion"/>
  <tag k="sport" v="multi"/>
  <tag k="leisure" v="stadium"/>
  <tag k="#geo:center" v="POINT(1821151.50679335 6148342.21063917)"/>
  <tag k="#importance" v="urban"/>
</match>
<match id="way_29641385" rule_id="7">
  <tag k="leisure" v="pitch"/>
  <tag k="#geo:center" v="POINT(1821264.36401579 6148264.8859267)"/>
  <tag k="#importance" v="suburban"/>
</match>
<match id="way_29045847" rule_id="13">
  <tag k="name" v="12.-Februar-Platz"/>
  <tag k="leisure" v="park"/>
  <tag k="#geo:center" v="POINT(1821592.70700723 6148452.97489717)"/>
  <tag k="#importance" v="suburban"/>
</match>
<match id="way_30254155" rule_id="14">
  <tag k="leisure" v="playground"/>
  <tag k="#geo:center" v="POINT(1821251.98385877 6148089.43397263)"/>
  <tag k="#importance" v="local"/>
</match>
</category>
</results>