Opened 10 years ago

Closed 7 years ago

#1839 closed defect (wontfix)

Error in bounding box constraints for XAPI relation queries

Reported by: Robert Whittaker Owned by: 80n80n@…
Priority: major Milestone:
Component: xapi Version:
Keywords: Cc:

Description

I've been playing with the OSM XAPI, trying to extract a list of all the relations for bus routes in Oxford, UK.

I've been using http://www.informationfreeway.org/api/0.5/relation[route=bus][bbox=-1.33827,51.70745,-1.16867,51.79290] and more recently http://osmxapi.hypercube.telascience.org/api/0.6/relation[route=bus][bbox=-1.33827,51.70745,-1.16867,51.79290] but both give odd results.

What's returned seems to include a lot (probably all) of the routes I was expecting, but also many other relations that don't appear to be anywhere near the specified bounding box.

For instance, the first call above also returns http://www.openstreetmap.org/browse/relation/81619 and http://www.openstreetmap.org/browse/relation/61335 and http://www.openstreetmap.org/browse/relation/61333

These are no-where near the bounding box specified in the XAPI call: http://www.openstreetmap.org/?minlon=-1.33827&minlat=51.70745&maxlon=-1.16867&maxlat=51.79290&box=yes

Change History (3)

comment:1 Changed 10 years ago by Robert Whittaker

Summary: Error in bounding box contraints for XAPI relation queriesError in bounding box constraints for XAPI relation queries

Just to add that new erroneous relations seem to be appearing in answer to the above API calls. The new appearances are not always new relations, but their appearence seems to be triggered by them being editing by someone.

comment:2 Changed 10 years ago by Mikado

I'm having the same problem with relations of "restriction" type. At some point it seemed that errorneous relations are returned along with the requested, but now there are some valid relations outside the bbox in the output.

comment:3 Changed 7 years ago by pnorman

Resolution: wontfix
Status: newclosed

Closing as this relates to the old XAPI which is no longer maintained. The new jxapi can be found at https://github.com/iandees/xapi-servlet and issues should be reported there.

Note: See TracTickets for help on using tickets.