Commits

Mike Orr committed 5eb5eba

lat/lon swapping also occurs in 'add_georss_point' method.

  • Participants
  • Parent commits 157355f

Comments (0)

Files changed (1)

File webhelpers/feedgenerator.py

 #   lon-lat by setting the ``GeoFeedMixin.is_input_latitude_first`` flag to
 #   false. (The flag can be set in a subclass or instance anytime before the
 #   output is written.) The swapping is done in
-#   ``GeoFeedMixin.georss_coords()``.
+#   ``GeoFeedMixin.georss_coords()`` and ``.add_georss_point()``.
 
 
 """
         W3C Geo specification.
         """
         if w3c_geo:
-            lon, lat = coords[:2]
+            if self.is_input_latitude_first:
+                lat, lon = coords[:2]
+            else:
+                lon, lat = coords[:2]
             handler.addQuickElement(u'geo:lat', u'%f' % lat)
             handler.addQuickElement(u'geo:lon', u'%f' % lon)
         else: