-
Notifications
You must be signed in to change notification settings - Fork 3
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
update the schedules page to use the route_details
endpoint
#520
Comments
@albertkun I got the updates, thanks, and presuming the variations are directions? 6010003_DEC23 (for eg. Northbound) Started refactoring and hit a bump, the new API endpoint is returning responses for only bus routes, and all the rail routes are returning Tried with multiple combinations of |
@anithegregorian thank you for the heads up!
regarding the second question, sorry, i forgot to mention that the problem is that the operators are no longer using this should coincide with the route_overview table's
trust me, i did not want this change (it caused me a lot of headache), but i was told to use it. :( feel free to ask if you have any other questions! |
@anithegregorian just to confirm, are you using the |
@albertkun it's |
After refactoring and removing most of the cleanup code in JS: https://lametro.wpengine.com/riding/schedules/ You should be able to see a list of stops and a map of the entire route, it's missing point geometry for stops (markers). Once I clean the code, and fix some bugs(map zoom and center, search etc.) and functionality, should be ready. What about additional times? Do we need them? Most importantly, the |
Gotcha! @anithegregorian One issue related to the |
I had a feeling it was not the right thing to do, shall make corrections for 24 hrs time stamp, but hope that's what it should be based on (a users locale settings). What about additional times and the missing geometry for markers (points)? I was looping through the stops previously which returned a geometry with points to build them on the JS front-end. Another way, that I can think of is to split the {
"TYPE": "GeometryCollection",
"geometries": [{
"TYPE": "Point",
"coordinates": [100.0, 0.0]
}, {
"TYPE": "LineString",
"coordinates": [
[101.0, 0.0],
[102.0, 1.0]
]
}]
} |
Maybe simple solution is to retrieve the GMT time for Los Angeles and use that time? Since at the moment the current schedules page is only useful for the current time in Los Angeles! Do you think that is possible? Regarding the additional geometry and markers, I'm not 100% sure what we should do as that is more of a design decision, we will have to bring it up with the team! But you might be on the track using a Geometry collection. My suggestion for the time being is to ignore the additional stops, AHAHA 😅 |
@albertkun so far so good, 24hr shouldn't be an issue now. Two things to go over, third is trivial:
That's it, rest is up and running on stage: https://lametro.wpengine.com/riding/schedules/ |
@anithegregorian great work and thank you for the feedback! Here are my comments:
|
ok, @anithegregorian i got it down to 12.05 kB! let me know if that helps!! |
@anithegregorian please use this thread to report any questions or issues with the endpoint
The text was updated successfully, but these errors were encountered: