From: Tom Hughes Date: Mon, 26 Nov 2007 16:28:28 +0000 (+0000) Subject: Clear gotele and gotdate when we see the start of a trkpt element to X-Git-Tag: live~8080 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/2ba147e7fa0ba03fbf9881b54271dffd0b6bc02b Clear gotele and gotdate when we see the start of a trkpt element to avoid inheriting previous data. --- diff --git a/lib/osm.rb b/lib/osm.rb index 916cf4d6a..b14a7f3e8 100644 --- a/lib/osm.rb +++ b/lib/osm.rb @@ -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