1.1 --- a/EventAggregatorSupport.py Mon Feb 04 19:20:12 2013 +0100
1.2 +++ b/EventAggregatorSupport.py Mon Feb 04 23:35:50 2013 +0100
1.3 @@ -2974,13 +2974,22 @@
1.4 event_details = event.getDetails()
1.5
1.6 location = event_details.get("location")
1.7 + geo = event_details.get("geo")
1.8 +
1.9 + # Make a temporary location if an explicit position is given
1.10 + # but not a location name.
1.11 +
1.12 + if not location and geo:
1.13 + location = "%s %s" % tuple(geo)
1.14 +
1.15 + # Map the location to a position.
1.16
1.17 if location is not None and not event_locations.has_key(location):
1.18
1.19 # Get any explicit position of an event.
1.20
1.21 - if event_details.has_key("geo"):
1.22 - latitude, longitude = event_details["geo"]
1.23 + if geo:
1.24 + latitude, longitude = geo
1.25
1.26 # Or look up the position of a location using the locations
1.27 # page.