X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/46c0e364eea5a1016a37db54e8b8925059f16bfa..f2150a94cf2eb0d518a19769fc7582ea50a5f67b:/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) %> +