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

Hi,

I am trying get map from openstreetmaps, but having problems. (debian system) $ wget -O patagonie.osm "http://api.openstreetmap.org/api/0.6/map?bbox=-75.64,-56.17,-64.70,-50.00" --2011-10-20 23:07:43-- http://api.openstreetmap.org/api/0.6/map?bbox=-75.64,-56.17,-64.70,-50.00 Resolving api.openstreetmap.org (api.openstreetmap.org)... 193.63.75.100, 193.63.75.99 Connecting to api.openstreetmap.org (api.openstreetmap.org)|193.63.75.100|:80... connected. HTTP request sent, awaiting response... 400 Bad Request 2011-10-20 23:07:43 ERROR 400: Bad Request.

Is this data too big?

regards

mira

asked 20 Oct '11, 22:21

miramikes's gravatar image

miramikes
26224
accept rate: 0%


Yes, it's apparently too big.

When I open http://api.openstreetmap.org/api/0.6/map?bbox=-75.64,-56.17,-64.70,-50.00 in Firefox I get:

The maximum bbox size is 0.25, and your request was too large. Either request a smaller area, or use planet.osm

You will see the same error message if you add the -S switch to your wget command (i.e. wget -SO patagonie.osm ...).

permanent link

answered 20 Oct '11, 22:36

gnurk's gravatar image

gnurk
6.1k106096
accept rate: 15%

edited 21 Oct '11, 00:13

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273

Thank you for clarifying

(21 Oct '11, 00:56) miramikes

The main OpenStreetMap API is provided for editing the map, not for downloading large extracts for other projects. So it limits how large an area you can download. See the API usage policy.

If you want a larger extract, eg a whole country, then it is probably best to use a Planet extract. These are available from a number of different providers, covering different parts of the world, see Planet.osm extracts. Geofabrik and Cloudmade provide extracts for Argentina and Chile, or for the whole of South America, which would cover the area of your bounding box request.

permanent link

answered 21 Oct '11, 00:01

Vclaw's gravatar image

Vclaw
9.2k895141
accept rate: 22%

Ok, thank you.

(21 Oct '11, 00:55) miramikes

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:

×6

question asked: 20 Oct '11, 22:21

question was seen: 8,664 times

last updated: 21 Oct '11, 08:49

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