-
Notifications
You must be signed in to change notification settings - Fork 289
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
Support Shared Trips and Deep Links #715
Comments
Good tutorial on deep links: |
After discussion in OneBusAway/onebusaway-iphone#855 (comment), the above path should be changing from |
This all looks 👍 to me. |
Thanks @aaronbrethorst! Here's a screen capture of the current feature on iOS: |
Maybe a little more than just a URL? As one of the options for a particular bus at a particular stop, allow doing a share (iOS/Android). This should say something like "I'm on my way on bus and I'll be to in minutes. Follow my ride at " - Going to the URL should load a webpage showing the destination stop, bus route, and that particular bus on the route. |
Sure, it should be pretty straightforward to add a little text too. I'll need to think through the UI a bit surrounding identifying a destination. Tapping in the URL will launch you straight into the app with a view of that trip - if you look at the Dropbox link above you can see how this currently looks in general on iOS. |
Also, if you click on the URL on desktop, it will take you to the website: |
I've written more about how I intend to build out the iOS equivalent feature in https://github.com/OneBusAway/onebusaway-iphone/issues/1213 |
Looks like the URL structure changed with OBA 2.0 servers:
|
Summary:
Allow users to tap on a few buttons in the app to share the trip whey are currently on via SMS/messaging app, so someone else can tap on that URL and open that trip in the app. Work across Android and iOS.
iOS issue - OneBusAway/onebusaway-iphone#833
iOS PR - OneBusAway/onebusaway-iphone#855
From that PR:
See above PR for screenshots on iOS.
URL format on iOS:
https://www.onebusaway.co/regions/<region_id>/stops/<stop_id>/arrivals
https://www.onebusaway.co/regions/<region_id>/stops/<stop_id>/trips
with query params:
trip_id
service_date
stop_sequence
Example:
https://www.onebusaway.co/regions/1/stops/1_29273/arrivals?trip_id1_30938405&service_date=1478156400000&stop_sequence=10
Update Oct 24 2017:
Current URL format on iOS:
https://www.onebusaway.co/regions/0/stops/Hillsborough%20Area%20Regional%20Transit_4543/trips?trip_id=Hillsborough%20Area%20Regional%20Transit_300984&service_date=1508817600000&stop_sequence=52
The text was updated successfully, but these errors were encountered: