Supporting apple time to travel extension
There is unsurprisingly not much documentation about this feature:
But these are the custom property I found here: https://stackoverflow.com/questions/30921899/how-do-the-x-apple-extensions-work-in-icalendars
BEGIN:VEVENT
X-APPLE-TRAVEL-START;ROUTING=CAR;VALUE=URI;X-ADDRESS=Bingerdenallee 1\\n
6921 JN Duiven\\nNederland;X-TITLE=Home:
X-APPLE-TRAVEL-DURATION;VALUE=DURATION:PT45M
X-APPLE-STRUCTURED-LOCATION;VALUE=URI;X-ADDRESS=Olympus 1\\n3524 WB Utre
cht\\nThe Netherlands;X-APPLE-RADIUS=49.91307222863458;X-TITLE=Olympus 1
:geo:52.063921,5.128511
BEGIN:VALARM
TRIGGER;X-APPLE-RELATED-TRAVEL=-PT30M:-PT1H15M
END:VALARM
END:VEVENT
Ideally, we should implement the parsing of these custom properties inside src/incidencewrapper.cpp using the methods available here: https://api.kde.org/frameworks/kcalendarcore/html/classKCalendarCore_1_1CustomProperties.html
Important for now is the X-APPLE-TRAVEL-DURATION prop that will modify the start time of the incidence in the UI
Related issues:
Edited by Carl Schwan