1 class Tracepoint < ActiveRecord::Base
2 set_table_name 'gps_points'
4 # validates_numericality_of :latitude
5 # validates_numericality_of :longitude
8 belongs_to :trace, :foreign_key => 'gpx_id'
11 self.latitude = l * 1000000
15 self.longitude = l * 1000000
19 return self.latitude.to_f / 1000000
23 return self.longitude.to_f / 1000000