-
Notifications
You must be signed in to change notification settings - Fork 288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trip planning #25
Comments
We have an OTP server in Tampa as well as OBA, so we'd be happy to test any work on this. |
I believe SoundTransit is going to be running their own OTP as part of their regional data services. Would this have to be included in the region data? |
That's a good question. I believe the answer is yes, although we have some choices for implementation. We have a OTP Server Directory too, very similar in concept to the OBA Server directory (OBA Directory was actually based on OTP Directory, but currently only API for OTP Directory is the direct CSV output of Google Doc). Currently, to my knowledge, our OTP Android app is the only application using the OTP Server Directory (an aside - we could definitely borrow code from OTP Android to speed along trip planning implementation in OBA Android, as its under Apache 2.0, with the exception of some of the OTP REST API response POJOs, that are under LGPL in a separate project). So, in terms of adding regionalized OTP trip planning support to OBA apps via the OBA Regions API, I suppose there are two approaches:
|
@sheldonabrown This is the official ticket for trip planning on OBA Android. Just wanted to tag you so you received any updates here. |
* Adds a navigation drawer element to plan a trip * When tapping on that element, opens a new activity that would start the trip planning UI flow * See #25 for screenshots
I've started some work on fleshing out how this may fit into the current OBA UI navigation flow. Here's the branch: Basically, this adds another navigation drawer option that opens to a new activity where the trip planning UI would start: |
* Adds a navigation drawer element to plan a trip * When tapping on that element, opens a new activity that would start the trip planning UI flow * See #25 (comment) for screenshots
Some mockups for the possible look of the trip planning activity flow follow. First trip planning screen is on the left - user taps on the "Plan My Trip" button, and sees the initial results screen shown on the right: By tapping on the map icon in the upper right-hand corner, the user can see the same trip results on the map: Note that this could be reversed as well so that the map-based results show up first. Here's a sample "Advanced search" options screen, that the user would see when tapping on the menu of the initial origin/destination screen menu: |
HART asked about a feature that would alert users when a bus is delayed and provide alternate trip plans, AFTER a user has already planned their trip. We have something similar in OTP Android - here's how it works:
The discussion of the implementation of this feature starts around this comment in OTP Android: ...and this should be the PR that added the feature: Here are some screenshots of the notification, and how real-time info looks in context of the trip plan in OTP Android: |
York's current trip planning implementation is slightly different that the original mockups they provided above in terms of content/style - the best way to see what the current app looks like is to sign up for their beta updates here - https://play.google.com/apps/testing/can.yrt.onebusaway. |
* Adds a navigation drawer element to plan a trip * When tapping on that element, opens a new activity that would start the trip planning UI flow * See #25 (comment) for screenshots
@sheldonabrown Ok, I've rebased the below branch on master as of today (currently v2.0.9): This adds the new "Plan a trip" option to the navigation drawer as shown in #25 (comment), and when tapping on this it launches a new activity. The new activity is currently just a hello world shell, and you can drop in the York or OTP Android activity implementations there. Let me know if you have any questions! |
* Adds a navigation drawer element to plan a trip * When tapping on that element, opens a new activity that would start the trip planning UI flow * See OneBusAway#25 (comment) for screenshots
- Code was integrated from York OBA app and OpenTripPlanner-for-Android. - New TripPlanActivity with TripPlanFragment and TripResultsFragment. - If a region has an OpenTripPlanner instance specified in otpBaseUrl field, that instance will be queried from the trip planner. - Realtime feature: after a trip is planned and an itinerary is selected, OTP will be requeried every minute. If the rank of the selected itinerary changes in a returned list of itineraries, or the selected itinerary is no longer present, the user will be notified and can replan the trip.
- Code was integrated from York OBA app and OpenTripPlanner-for-Android. - New TripPlanActivity with TripPlanFragment and TripResultsFragment. - If a region has an OpenTripPlanner instance specified in otpBaseUrl field, that instance will be queried from the trip planner. - Realtime feature: after a trip is planned and an itinerary is selected, OTP will be requeried every minute. If the rank of the selected itinerary changes in a returned list of itineraries, or the selected itinerary is no longer present, the user will be notified and can replan the trip.
- Code was integrated from York OBA app and OpenTripPlanner-for-Android. - New TripPlanActivity with TripPlanFragment and TripResultsFragment. - If a region has an OpenTripPlanner instance specified in otpBaseUrl field, that instance will be queried from the trip planner. - Realtime feature: after a trip is planned and an itinerary is selected, OTP will be requeried every minute. If the rank of the selected itinerary changes in a returned list of itineraries, or the selected itinerary is no longer present, the user will be notified and can replan the trip.
- Code was integrated from York OBA app and OpenTripPlanner-for-Android. - New TripPlanActivity with TripPlanFragment and TripResultsFragment. - If a region has an OpenTripPlanner instance specified in otpBaseUrl field, that instance will be queried from the trip planner. - Realtime feature: after a trip is planned and an itinerary is selected, OTP will be requeried every minute. If the rank of the selected itinerary changes in a returned list of itineraries, or the selected itinerary is no longer present, the user will be notified and can replan the trip.
WIP PR at #541. |
Squashed/rebased PR at #602. |
There's no longer an OBA API for it, but people continue to ask for it. Frankly I doubt I will ever have time to do this, but I want to keep something open because it's such a popular feature request.
To be clear, this would involve either bringing back Brian's API, integrating OpenTripPlanner, or running my own server. If it were a different server it would have to be kept updated with GTFS updates just like the main OBA server is.
Moved from: http://code.google.com/p/seattle-bus-bot/issues/detail?id=83
The text was updated successfully, but these errors were encountered: