iRail / hyperRail

The repo for the iRail.be webapp
https://iRail.be
Creative Commons Zero v1.0 Universal
47 stars 17 forks source link

Export as ics file #256

Open mielvds opened 7 years ago

mielvds commented 7 years ago

Nice to have: an export to calendar for every route. Maybe with this script: https://gist.github.com/jakebellacera/635416

avdg commented 7 years ago

What about a composer package to solve the problem? I saw something like https://packagist.org/packages/eluceo/ical

kidk commented 7 years ago

I want to take some time implementing this, but I could use some feedback. As far as I can see we have two options:

My feeling is that the GET/POST approach would work best, where I send the information from /route/ call back to the back-end to generate the ICS file.

mielvds commented 7 years ago

I agree, that will also allow you to archive and cache the ics files if desired.

kidk commented 7 years ago

Pull request is live, still a bit WIP, but comments welcome. https://github.com/iRail/hyperRail/pull/260