]> git.openstreetmap.org Git - rails.git/commitdiff
Clear gotele and gotdate when we see the start of a trkpt element to
authorTom Hughes <tom@compton.nu>
Mon, 26 Nov 2007 16:28:28 +0000 (16:28 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 26 Nov 2007 16:28:28 +0000 (16:28 +0000)
avoid inheriting previous data.

lib/osm.rb

index 916cf4d6a4ed757d3b2e436685ab4d19b959d23e..b14a7f3e8ed32b03b6574123cc7ac401eb82a46c 100644 (file)
@@ -92,6 +92,8 @@ module OSM
         lat = attributes['lat'].to_f
         lon = attributes['lon'].to_f
         gotlatlon = true
+        gotele = false
+        gotdate = false
         @possible_points += 1
       end