X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1f8a68371ad34594cce4aadf5fef229588fd4ddc..2fa81de6a95e7f82ac67cda2b6b6cecbfabf694a:/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) %> +