X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/bed9cd00ed166ce346da4b8a9b654ddf86e64e70..5c557cfe7c1894d29cdbdacd15f2ae7e05c9d35d:/test/fixtures/gps_points.yml diff --git a/test/fixtures/gps_points.yml b/test/fixtures/gps_points.yml index 13ee3552a..b3171ac45 100644 --- a/test/fixtures/gps_points.yml +++ b/test/fixtures/gps_points.yml @@ -1,9 +1,35 @@ +<% 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) %> +trackable_trace_1: + trackid: 1 + latitude: <%= (51.510 * SCALE).to_i %> + longitude: <%= (-0.140 * SCALE).to_i %> + gpx_id: 3 + timestamp: "2009-07-30 17:46:00" + tile: <%= QuadTile.tile_for_point(51.510, -0.140) %> + +trackable_trace_2: + trackid: 2 + latitude: <%= (51.511 * SCALE).to_i %> + longitude: <%= (-0.141 * SCALE).to_i %> + gpx_id: 3 + timestamp: "2009-07-30 17:47:00" + tile: <%= QuadTile.tile_for_point(51.511, -0.141) %> + +identifiable_trace_1: + trackid: 1 + latitude: <%= (51.512 * SCALE).to_i %> + longitude: <%= (0.142 * SCALE).to_i %> + gpx_id: 4 + timestamp: "2009-07-30 17:46:00" + tile: <%= QuadTile.tile_for_point(51.512, 0.142) %> +