]> gitweb.michael.orlitzky.com - dead/census-tools.git/commitdiff
Switched the order of the lat/long output in the KML routes to match the API.
authorMichael Orlitzky <michael@orlitzky.com>
Wed, 31 Mar 2010 22:18:03 +0000 (18:18 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Wed, 31 Mar 2010 22:18:03 +0000 (18:18 -0400)
www/maps/maps/controllers/directions.py

index 0cd278ffa6893dfcbf741037339c2c289b77c5f0..d1c0d1567439ce847fcdfa639e1094bb38965dc6 100644 (file)
@@ -60,9 +60,9 @@ class DirectionsController(BaseController):
                 
                 for step in route['steps']:
                     for coord in step['lat_lngs']:
-                        coords.text += str(coord.values()[1])
-                        coords.text += ','
                         coords.text += str(coord.values()[0])
+                        coords.text += ','
+                        coords.text += str(coord.values()[1])
                         coords.text += ',0 '
                         
                 ls.children.append(coords)