Module: Vpim::Icalendar::Property::Location
Instance Method Summary collapse
-
#geo ⇒ Object
Array of Float, [ latitude, longitude].
-
#location ⇒ Object
Physical location information relevant to the component, or nil if there is no LOCATION property.
Instance Method Details
#geo ⇒ Object
Array of Float, [ latitude, longitude].
North of the equator is positive latitude, east of the meridian is positive longitude.
See RFC2445 for more info… there are lots of special cases.
25 26 27 28 29 30 31 |
# File 'lib/vpim/property/location.rb', line 25 def geo prop = @properties.detect { |f| f.name? 'GEO' } if prop prop = Vpim.decode_list(prop.value_raw, ';') do |item| item.to_f end end prop end |
#location ⇒ Object
Physical location information relevant to the component, or nil if there is no LOCATION property.
15 16 17 |
# File 'lib/vpim/property/location.rb', line 15 def location proptext 'LOCATION' end |