iCal
iCal copied to clipboard
looks like we can not add location into calendar.
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
How are you setting up date start and date end? You can add other param by adding code to buildPropertyBag function in event.php
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
?
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.