Giter Site home page Giter Site logo

Comments (13)

paulcwatts avatar paulcwatts commented on June 12, 2024

This could definitely be integrated as well into a new trip details / extended arrivals activity. There's a lot to think about if I want to add all of these features.

from onebusaway-android.

barbeau avatar barbeau commented on June 12, 2024

There are also a number of ideas on how to implement this from users on an OBA IdeaScale idea page as well.

This is important in Tampa since some routes have half-hour or even hour headways, and on these routes/stops the app has limited utility when only the next 35 minutes is shown to the user. Half-hour headways arrivals are removed from the user's view as well where there is more than a 5 minute delay.

Ideally we should try and coordinate with OBA iPhone too so we have some consistency (or borrow ideas ;) ) for how information is shown to the user.

from onebusaway-android.

barbeau avatar barbeau commented on June 12, 2024

OBA iPhone devs just implemented a feature for this, I'll post a screenshot when the build goes out for testing.

from onebusaway-android.

barbeau avatar barbeau commented on June 12, 2024

The current iPhone solution is to add a Load more arrivals button at the bottom of the arrivals list:

photo 1

When tapped, the app hits the API again, increasing the minutesAfter parameter by 30. If there are more arrivals they are tacked onto the bottom of the list, with the Load more arrivals button remaining at the bottom:
photo 2

If tapped again, minutesAfter is increased by 30 minutes again.

@paulcwatts Would you be ok with a similar solution for Android? If so I'll try to implement soon.

from onebusaway-android.

paulcwatts avatar paulcwatts commented on June 12, 2024

That's fine with me. Eventually it would be nice to just provide a link to the stop schedule as well.

from onebusaway-android.

barbeau avatar barbeau commented on June 12, 2024

Agreed, stop schedule link would be good too, I'm assuming in the context menu that pops up when tapping on the arrival time (this is where "route schedule" appears)? I'll open a separate issue for this, since at a glance I believe this requires another field in the Regions API for a base URL for the OBA website (which doesn't necessarily have the same base URL as the API).

from onebusaway-android.

barbeau avatar barbeau commented on June 12, 2024

Well, as an alternative to directing to the OBA stop schedule page, there is a stop_url in the GTFS spec, but neither HART in Tampa nor Sound Transit populate it (and I'm assuming this means they don't have web pages per stop). I don't think the stop_url field is in the OBA REST API response either. So pointing at the OBA stop schedule page is probably the path of least resistance, assuming an agency has an OBA website.

from onebusaway-android.

paulcwatts avatar paulcwatts commented on June 12, 2024

Sorry I wasn't clear, my comment was we could build some screens into the Android app that would consume the OBA Discovery APIs.

from onebusaway-android.

barbeau avatar barbeau commented on June 12, 2024

Ah, gotcha. I'll update the other issue.

from onebusaway-android.

barbeau avatar barbeau commented on June 12, 2024

@paulcwatts As far as the general style of the "Load More Arrivals" button, are you ok with the below? Any suggestions?

image

from onebusaway-android.

paulcwatts avatar paulcwatts commented on June 12, 2024

I'd just have the text flat against the list item and have the entire list item be actionable.

from onebusaway-android.

barbeau avatar barbeau commented on June 12, 2024

OK, so exact same as iPhone as shown earlier?
On Oct 17, 2013 6:35 PM, "Paul Watts" [email protected] wrote:

I'd just have the text flat against the list item and have the entire list
item be actionable.


Reply to this email directly or view it on GitHubhttps://github.com//issues/26#issuecomment-26558901
.

from onebusaway-android.

paulcwatts avatar paulcwatts commented on June 12, 2024

Yeah, like that +1

from onebusaway-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.