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
25336
accept rate: 0%

edited 06 Oct '14, 18:52

scai's gravatar image

scai ♦
31.5k18287440

2

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
2

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

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

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
2

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

http://owl.apis.dev.openstreetmap.org/?box=yes&bbox=-77.015412%2C38.889932%2C-77.015212%2C38.889732#map=19/38.88982/-77.01594&layers=N

The ways in it have no maxspeed tags:

http://www.openstreetmap.org/way/6055099

http://www.openstreetmap.org/way/6062971

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 ♦
1

@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

http://wiki.openstreetmap.org/wiki/Overpass_API/XAPI_Compatibility_Layer

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

mmd
5.6k4988
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

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:

×355
×240
×40

question asked: 01 Oct '14, 08:35

question was seen: 8,217 times

last updated: 06 Oct '14, 18:52

powered by OSQA