Commits

Richo Healey committed 773e63b

Cache the raw location data, even if we're asked for less precision

Comments (0)

Files changed (1)

     def safe_latitude(self):
         return self.safe_value(self.latitude)
 
+    def raw(self):
+        return "%s,%s" % (self.latitude, self.longitude)
+
     def __repr__(self):
         return "%s,%s" % (self.safe_latitude(), self.safe_longitude())
 
     if not l:
         raise LocationServiceException(last_error)
 
-    write_to_cache(l)
+    write_to_cache(l.raw())
 
     return l