This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

xapi returns two different roads for a bounding box on a specific road

0

Hi all,

I am trying to get the roadname for a specifi road. For this I use an xapi query with the bounding box set as small as just a point on a road (as retrieved from google maps). http://open.mapquestapi.com/xapi/api/0.6/way[highway=*][bbox=5.405231,51.466303,5.405231,51.466303]

While the bounding box is on a road called N2 the result is also containing a road called A2 which is next to it.

Can anybody tell me what I am doing wrong here?

Thanks in advance

asked 05 May '13, 01:22

JLambregs's gravatar image

JLambregs
11112
accept rate: 0%

1

you even have a third way ... a cycleway!

Maybe that the mapquest API is rounding the coordinates so a bigger bbox is the result?

Have you tried do that query at https://wiki.openstreetmap.org/wiki/Overpass_API ?

(05 May '13, 18:32) stephan75
1

Please note also that the Mapquest API got stuck with old data from even before the license change. Maybe this is also an old and already busted bug.

(06 May '13, 07:43) Roland Olbricht

Source code available on GitHub .