I'm Using http://www.overpass-api.de/api/xapi?[maxspeed=][bbox=42.378275,-71.089182,42.378475,-71.089382] URL to get max speed but its not work. Can any buddy suggest me the right way.

From where i can create api for the same?

asked 01 Oct '14, 08:35

Omkar%20Bodke's gravatar image

Omkar Bodke
accept rate: 0%

edited 06 Oct '14, 18:52

scai's gravatar image

scai ♦


Please tell us in detail WHAT does not work!

Do you think that a mechanic can help you if you tell him just: "my car does not drive" ??

Have you tried already http://wiki.openstreetmap.org/wiki/Overpass_Turbo ? Read about all its features in the OSM wiki and built-in help pages.

(01 Oct '14, 16:49) stephan75

I'm using this link to get maxspeed limit of road but is gives error like The data is made available under ODbL.

Error: line 4: static error: The value of attribute "n" of the element "bbox-query" must always be greater or equal than the value of attribute "s".

Error: line 10: static error: The value of attribute "n" of the element "bbox-query" must always be greater or equal than the value of attribute "s".

Error: line 17: static error: The value of attribute "n" of the element "bbox-query" must always be greater or equal than the value of attribute "s".

(06 Oct '14, 07:29) Omkar Bodke

Your bounding box is wrong. The numbers must be left,bottom,right,top.

(06 Oct '14, 08:10) scai ♦

The correct URL would be http://www.overpass-api.de/api/xapi?*[bbox=42.378275,-71.089382,42.378475,-71.089182][maxspeed=*] (second and forth number switched) but it doesn't return any elements because the bounding box you chose doesn't contain elements with a maxspeed tag. In fact, the bbox is somewhere in Antarctica. Did you mix lat and lon, too? In that case try this URL instead which returns data from Boston: http://www.overpass-api.de/api/xapi?*[bbox=-71.089382,42.378275,-71.089182,42.378475][maxspeed=*]

(06 Oct '14, 12:11) scai ♦

Ohhh. This issue not allow me to go forward. http://www.overpass-api.de/api/xapi?[bbox=-77.015412,38.889732,-77.015212,38.889932][maxspeed=] why this not return any maxspeed?

(06 Oct '14, 14:22) Omkar Bodke

Because your version is missing two "*" characters when compared to scai's version? Or is that just a "copy and paste issue" and you're actually worried that no matching data is being returned?

(06 Oct '14, 14:50) SomeoneElse ♦

Actually its not working even if we placed "*" character. And not return any maxspeed.

(06 Oct '14, 15:08) Omkar Bodke

Your bounding box (which is different to the one in scai's example above) is a tiny area:


The ways in it have no maxspeed tags:



EDIT: Clarified that the bbox used differs from the suggestion in the previous comment (just to make it absolutely clear!).

(06 Oct '14, 15:16) SomeoneElse ♦

@Omkar The second URL in my previous comment returns two ways with maxspeed tags (http://www.openstreetmap.org/way/9429794 and http://www.openstreetmap.org/way/257681343 ).

(06 Oct '14, 15:19) scai ♦
showing 5 of 9 show 4 more comments


Check the link above ... it even has an example for maxspeed and bbox. Change way to * if you also want nodes and relations.

Btw: this page is horrible to use on a mobile device!!

permanent link

answered 01 Oct '14, 18:30

mmd's gravatar image

accept rate: 37%

Thank you. This is helpful for me.

(06 Oct '14, 11:04) Omkar Bodke
Your answer
toggle preview

Follow this question

By Email:

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



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:


question asked: 01 Oct '14, 08:35

question was seen: 8,217 times

last updated: 06 Oct '14, 18:52

powered by OSQA