Comments (9)
We're seeing a similar issue here in Tampa:
From Scherer drive in Pinellas County, you can find routes 4, 19, 52, but not 14, 20, 23"
Looks like the default radius in Android is 15,000m.
@paulcwatts Any idea what a good value for Puget Sound would be? I'm still looking into what a good value would be for Tampa.
cc @cagryInside
from onebusaway-android.
40,000m encompasses pretty much all of the Seattle-Tacoma region. I seem to remember though that the radius caps out on the server somewhere -- however, that could have changed, it's been years since I last looked at this bug.
from onebusaway-android.
Looks like the server-side routes-for-location API default is 10,000m when a query parameter isn't provided.
Looking at the Android code closer, it appears that the following logic is used to search for routes:
- Look for nearby matches via REST API using user location (no radius specified)
- If no results from 1., then look for nearby matches via REST API using region center (radius of 15,000m)
So, in most cases (when user location is provided), we're actually defaulting to the server radius of 10,000m.
from onebusaway-android.
@caitbonnar Could you check into what search radius is current used for OBA iOS when search for nearby routes/stops? See above thread for details, but in short - the app can specify the radius, or rely on the server-side default (10,000m).
from onebusaway-android.
@paulcwatts 40,000m looks like a good encompassing radius for most of Tampa Bay area as well (assuming your near downtown Tampa - and if you're more at the fringes of the area, you don't want anything on the opposite side anyway). I propose we fix this in OBA Android by increasing the radius to 40,000m, and using this radius when searching based on user's real-time location. I just did a quick test and it seems to work fine in Tampa. If there are no objections I'll submit a PR for this shortly.
(An aside - this site is a good quick tool to visualize radius around a point)
If we run into additional issues in the future with radius for specific deployments, we might want to consider making it a field in the Regions API that can be set per-region.
from onebusaway-android.
@barbeau It appears that we use the maximum of the region's radius (@Wizecoder and I tried to trace it back -- it looks like this is actually the area currently displayed on the map, not a region as defined by the regions file... but we could be wrong here) and 15000m, similar to Android.
I think we actually construct a bounding box based on the lat/lons from the regions file to determine whether or not the user is in or out of service area (I remember asking you a lot of questions about this awhile back). Perhaps you could also think of using the radius of the box (i.e. the max of length and width) if you wanted to make sure search the entire region. Not sure if what you're looking for is just a reliable default here, though.
from onebusaway-android.
OneBusAway/onebusaway-iphone#67 (comment) may be useful for details on how search works on iOS.
from onebusaway-android.
Thanks @caitbonnar @bbodenmiller @Wizecoder. Yes, I'm looking for a fairly generalizable default here.
I just posted to the oba-dev list on this as well to see if anyone else has additional input:
https://groups.google.com/forum/#!topic/onebusaway-developers/PGbHs3bGopA
from onebusaway-android.
I'm now realizing that when I fixed this, I expanded the route search radius, but not the stop search radius (I missed a method call). Since this ticket was explicitly for route search, I'm opening another ticket for stop search.
from onebusaway-android.
Related Issues (20)
- Don't run some tests on GitHub Actions CI HOT 1
- Informed consent needs to include word "background"
- Add a home screen widget HOT 6
- IntentService deprecated in Android 11
- Adding Italian localization HOT 3
- Update current real-time occupancy UI HOT 1
- Improve trip transfer experience - filter older arrivals when user views stop coming from another line
- UX - Color Pairings for Maximum Usability HOT 1
- Improve error handling for bad server arrival and departure times
- Android 12 causes device reboot while OBA is running HOT 4
- Google Play data disclosure - Google SDK links HOT 2
- Allow manual sync of travel behavior data HOT 4
- ForegroundServiceStartNotAllowedException on boot on some Android 12 devices
- Make background location permission configurable for rebranded apps in build.gradle HOT 1
- accessibility: items not read on main screen with screen reader
- Start with map view with routes and vehicles visible? HOT 1
- Fit and Finish Review HOT 4
- Get CI passing again HOT 1
- Dark Mode Override Doesn't 'Stick' HOT 1
- User Bug Report: Notifications and reminders of bus arrivals have stopped working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onebusaway-android.