Skip to content

stops-for-location always return empty list with outOfRange: true #365

@AngeloAvv

Description

@AngeloAvv

When using the default onebusaway-docker configuration, *-for-location endpoints always return empty data with outOfRange: true even though you're in the exact center of the region.

http://localhost:8080/onebusaway-api-webapp/api/where/stops-for-location.json?key=TEST&lat=38.555308&lon=-121.735991

{
   "code":200,
   "currentTime":1723120309387,
   "data":{
      "limitExceeded":false,
      "list":[
         
      ],
      "outOfRange":true,
      "references":{
         "agencies":[
            
         ],
         "routes":[
            
         ],
         "situations":[
            
         ],
         "stopTimes":[
            
         ],
         "stops":[
            
         ],
         "trips":[
            
         ]
      }
   },
   "text":"OK",
   "version":2
}

Steps to reproduce:

  1. docker-compose up oba_bundler
  2. docker-compose up oba_app
  3. Browse to http://localhost:8080/onebusaway-api-webapp/api/where/agencies-with-coverage.json?key=TEST so you can find the exact center of the agency
{
   "code":200,
   "currentTime":1723120137641,
   "data":{
      "limitExceeded":false,
      "list":[
         {
            "agencyId":"unitrans",
            "lat":38.555308,
            "latSpan":0.03564399999999779,
            "lon":-121.735991,
            "lonSpan":0.10500400000000809
         }
      ],
      "references":{
         "agencies":[
            {
               "disclaimer":"",
               "email":"",
               "fareUrl":"",
               "id":"unitrans",
               "lang":"en",
               "name":"Unitrans",
               "phone":"530-752-BUSS",
               "privateService":false,
               "timezone":"America/Los_Angeles",
               "url":"http://unitrans.ucdavis.edu"
            }
         ],
         "routes":[
            
         ],
         "situations":[
            
         ],
         "stopTimes":[
            
         ],
         "stops":[
            
         ],
         "trips":[
            
         ]
      }
   },
   "text":"OK",
   "version":2
}
  1. Browse to http://localhost:8080/onebusaway-api-webapp/api/where/stops-for-location.json?key=TEST&lat=38.555308&lon=-121.735991

You can also apply a radius of 100Km or change the location to one of the available stops, but you'll always receive the same answer: empty list with outOfRange: true.

Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions