+ for row in consumers_csv:
+ # Do the same thing for the consumers.
+ row['type'] = 'consumer'
+ json_objects.append(row)
+
+ c.json = json.dumps(json_objects)
+ c.js = render('javascript/routing.mako')
+
+ return render('location/route.mako')
+
+ def distance(self):
+ c.postback_url = '/directions/distances'
+ return self.route()
+