Skip to content
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

Find out if there is a way to get stop information for Anacortes sailings #85

Open
loganSims opened this issue Apr 17, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@loganSims
Copy link
Contributor

For example, the "Anacortes to Lopez Island" sailing can make multiple stops along the way

@loganSims loganSims added the enhancement New feature or request label Apr 17, 2020
@loganSims
Copy link
Contributor Author

loganSims commented Feb 8, 2021

the sailings/ endpoint offers stop information in a form that matches the web presentation.

It should be possible to connect the times to times in the schedule JSON to list stops made a long the way. For example we could add something like a new Steps field:

"Sailings":[
               {
                  ...
                  "DepartingTerminalName":"Anacortes",
                  "ArrivingTerminalName":"Orcas Island",
                  ...
                  "Times":[
                     {
                        "DepartingTime":"2021-02-08 05:30 AM",
                        "ArrivingTime":"2021-02-08 06:35 AM",
                        "AnnotationIndexes":[],
                        "Steps": [
                            {
                               "terminal": "Lopez Island",
                               "time": "06:20 AM"
                            }
                        ]
                     },

The above schedule is shown on the website as:

Screen Shot 2021-02-08 at 9 35 34 AM

It's important to note the 7:15 AM stop is also returned from the sailings/ endpoint, but probably won't be needed since its after the arrival time for the destination terminal, Orcas Island. Will need to add some logic to make sure we aren't showing stop times after the destination stop time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant