Why not ask your question on the new OpenStreetMap Community Forum?

I am trying to pull data for a single city bounded by two lat-long pairs with:

http://www.openstreetmap.org/api/0.6/map?bbox=-76.7237091,39.19714109,-76.5273285,39.385794515

I am currently logged in to OSM (my browser has a cookie).

It doesn't work. When I try the diagnostic:

http://www.openstreetmap.org/api/0.6/permissions

I get a response of an empty set of permissions.

What do I need to do?

asked 13 May '14, 23:30

borbash's gravatar image

borbash
41337
accept rate: 0%


The api is designed for editing the openstreetmap data. It has a limit how big an area you are allowed to download at once. The whole of Baltimore is certainly too much.

Clicking on the export button at the top of the the openstreetmap main page list some alternatives if the export from the api fails, because the area is too big. E.g.: http://overpass-api.de/api/map?bbox=-76.7237,39.1971,-76.5273,39.3858 and http://metro.teczno.com/#dc-baltimore

permanent link

answered 14 May '14, 01:12

cartinus's gravatar image

cartinus
7.0k1066105
accept rate: 27%

edited 14 May '14, 01:13

1

The overpass API worked immediately. Thanks! A followup: I wanted the data only to check for the existence of a certain tag, namely "highway=speed_camera". Is there a way to ask for only those tags within a bounding box?

(14 May '14, 04:11) borbash
1

Yes, there is (just replace the name with your highway tag). Even better: you can visualize the result using overpass turbo where the result can also be exported (hint: use the wizard for creating new queries).

(14 May '14, 08:12) scai ♦

http://overpass-turbo.eu/ makes it easy to design queries

(14 May '14, 08:13) SimonPoole ♦
Your answer
toggle preview

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:

×285
×229
×29

question asked: 13 May '14, 23:30

question was seen: 3,900 times

last updated: 14 May '14, 08:13

powered by OSQA