X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d19ca7c44bc4811cb0cca046a10af31d534de86f..734697ebb6cc27057fd8bb1d078a175ca5f45406:/app/models/tracepoint.rb diff --git a/app/models/tracepoint.rb b/app/models/tracepoint.rb index e48a2748d..e0fcfbd97 100644 --- a/app/models/tracepoint.rb +++ b/app/models/tracepoint.rb @@ -22,19 +22,19 @@ class Tracepoint < ActiveRecord::Base end def lat=(l) - self.latitude = (l * 1000000).round + self.latitude = (l * 10000000).round end def lng=(l) - self.longitude = (l * 1000000).round + self.longitude = (l * 10000000).round end def lat - return self.latitude.to_f / 1000000 + return self.latitude.to_f / 10000000 end def lon - return self.longitude.to_f / 1000000 + return self.longitude.to_f / 10000000 end def to_xml_node