X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/fd6f00b069af5a7b87227ea4c3401dc461d7311a..23c3168c55a2be7fd0176e235c12d8338d6b0a17:/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) %> +