iCal icon indicating copy to clipboard operation
iCal copied to clipboard

looks like we can not add location into calendar.

Open dextar47 opened this issue 6 years ago • 3 comments

Hi, I want to add location in calender info as well as through code we can set date start and end etc. so if you have plan for this in next release?

regards; Usman Ahmad

dextar47 avatar Jul 17 '18 10:07 dextar47

How are you setting up date start and date end? You can add other param by adding code to buildPropertyBag function in event.php

ChanM0 avatar Jul 23 '18 23:07 ChanM0

Do you mean the LOCATION property, i.e. something like LOCATION:Conference Room - F123\, Bldg. 002, or geographic location with the GEO property, i.e. something like GEO:37.386013;-122.082932?

troccoli avatar Nov 26 '18 16:11 troccoli

This feature has been initially added in 078200ffd50410cdbb92f499fb18edb39c54f0da

use Eluceo\iCal\Domain\Entity\Event;
use Eluceo\iCal\Domain\ValueObject\Location;
use Eluceo\iCal\Domain\ValueObject\GeographicPosition;

$location = new Location('Conference Room - F123');

// OPTIONAL:
// $geo = new GeographicPosition(37.386013, -122.082932);
// $location->withGeographicPosition($geo);

$event = new Event();
$event->setLocation($location);

This issue can be closed.

madbob avatar Sep 15 '23 23:09 madbob