Make the name of the lon/lng virtual attribute on trace points consistent.
This commit is contained in:
parent
e7d834625c
commit
6595f97c53
2 changed files with 2 additions and 2 deletions
|
@ -190,7 +190,7 @@ class Trace < ActiveRecord::Base
|
||||||
|
|
||||||
tp = Tracepoint.new
|
tp = Tracepoint.new
|
||||||
tp.lat = point['latitude'].to_f
|
tp.lat = point['latitude'].to_f
|
||||||
tp.lng = point['longitude'].to_f
|
tp.lon = point['longitude'].to_f
|
||||||
tp.altitude = point['altitude'].to_f
|
tp.altitude = point['altitude'].to_f
|
||||||
tp.timestamp = point['timestamp']
|
tp.timestamp = point['timestamp']
|
||||||
tp.gpx_id = id
|
tp.gpx_id = id
|
||||||
|
|
|
@ -25,7 +25,7 @@ class Tracepoint < ActiveRecord::Base
|
||||||
self.latitude = (l * 10000000).round
|
self.latitude = (l * 10000000).round
|
||||||
end
|
end
|
||||||
|
|
||||||
def lng=(l)
|
def lon=(l)
|
||||||
self.longitude = (l * 10000000).round
|
self.longitude = (l * 10000000).round
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue