]> git.openstreetmap.org Git - rails.git/commitdiff
fixed gps_point coordinates and tile. why was this passing the tests before?
authorMatt Amos <zerebubuth@gmail.com>
Thu, 30 Jul 2009 15:19:07 +0000 (15:19 +0000)
committerMatt Amos <zerebubuth@gmail.com>
Thu, 30 Jul 2009 15:19:07 +0000 (15:19 +0000)
test/fixtures/gps_points.yml

index 13ee3552a4944cd361ec63bcfce107c753ba67e8..31bd90120fb99c0801f9bc09957bf8fcf161a5f3 100644 (file)
@@ -1,9 +1,11 @@
+<% SCALE = 10000000 unless defined?(SCALE) %>
+
 first_trace_1:
   altitude: 134
   trackid: 1
-  latitude: 1
-  longitude: 1
+  latitude: <%= 1 * SCALE %>
+  longitude: <%= 1 * SCALE %>
   gpx_id: 1
   timestamp: "2008-10-01 10:10:10"
-  tile: 1
+  tile: <%= QuadTile.tile_for_point(1, 1) %>