]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/trace.rb
Add support for commenting on, and replying to, diary entries.
[rails.git] / app / models / trace.rb
index 4cac233c2fd51c5147c627ba0c1f92606755cc9c..baf2ea7d27592dba4c88baebbfd734f1a8c0ed17 100644 (file)
@@ -190,7 +190,7 @@ class Trace < ActiveRecord::Base
 
         tp = Tracepoint.new
         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.timestamp = point['timestamp']
         tp.gpx_id = id