NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

My problem: If I want to draw a map of Switzerland, I don't need Information about some Recycling station in Zurich. Or put differently: Is there any API that allows to retrieve OSM XML data, but only useful things considering the current zoom level?

asked 22 Mar '14, 14:35

allestuetsmerweh's gravatar image

allestuetsme...
16112
accept rate: 0%

edited 22 Mar '14, 14:36


The answer is essentially: no. Not only would you never find agreement on "useful things considering the current zoom level", we don't have an API that is cabable of returning data (even filtered) for such large areas either (forgeting about the fact that the OSM API is for editing only in any case).

But there is still hope :-)

The correct way to solve your problem is to either to query an XAPI or Overpass API server for the objects that you are actually interested in (assuming that is only a tiny bit of the available data), or get a country level extract of the OSM data from, for example, planet.osm.ch and filter that.

permanent link

answered 22 Mar '14, 16:51

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701
accept rate: 18%

edited 22 Mar '14, 16:54

… of course nothing stops anyone building such an API (maybe there even is somewhere such a thing). And if there would be only one person deciding what to output for each zoomlevel there is no agreement problem.

(22 Mar '14, 19:51) aseerel4c26 ♦

Use Maperitive and edit the rendering rules to exclude anything you don't want and to include anything you do want that isn't in the default set of rules.

permanent link

answered 22 Dec '15, 13:56

apm-wa's gravatar image

apm-wa
11112
accept rate: 0%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×290
×99
×45
×11

question asked: 22 Mar '14, 14:35

question was seen: 5,375 times

last updated: 22 Dec '15, 13:56

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum