Search code examples
openstreetmapopentripplanner

OpenTripPlanner is not returning stops within a given radius


OTP 1.4.0 will return all of the stops in the GTFS feed but will not return nearby stops when provided with lat/lon and radius. Does anyone know why this is happening and how to resolve it?

http://{my-otp-server}/otp/routers/default/index/stops?&lat={double}&lon={-double}&radius=.25
    RETURNS []
http://{my-otp-server}/otp/routers/default/index/stops
    RETURNS 3078 ROWS

Solution

  • I found out through trial and error and by comparing results with a different API that the units for radius are meters.