source: subversion/sites/rails_port/test/fixtures/gps_points.yml @ 17044

Last change on this file since 17044 was 17044, checked in by tomhughes, 10 years ago

Add extra visibility options for GPS traces, and enhance the API call
that returns trace data to return more information if the owner of the
trace has allowed it. Based on a patch from Matt Amos.

File size: 900 bytes
Line 
1<% SCALE = 10000000 unless defined?(SCALE) %>
2
3first_trace_1:
4  altitude: 134
5  trackid: 1
6  latitude: <%= 1 * SCALE %>
7  longitude: <%= 1 * SCALE %>
8  gpx_id: 1
9  timestamp: "2008-10-01 10:10:10"
10  tile: <%= QuadTile.tile_for_point(1, 1) %>
11 
12trackable_trace_1:
13  trackid: 1
14  latitude: <%= (51.510 * SCALE).to_i %>
15  longitude: <%= (-0.140 * SCALE).to_i %>
16  gpx_id: 3
17  timestamp: "2009-07-30 17:46:00"
18  tile: <%= QuadTile.tile_for_point(51.510, -0.140) %>
19
20trackable_trace_2:
21  trackid: 2
22  latitude: <%= (51.511 * SCALE).to_i %>
23  longitude: <%= (-0.141 * SCALE).to_i %>
24  gpx_id: 3
25  timestamp: "2009-07-30 17:47:00"
26  tile: <%= QuadTile.tile_for_point(51.511, -0.141) %>
27
28identifiable_trace_1:
29  trackid: 1
30  latitude: <%= (51.512 * SCALE).to_i %>
31  longitude: <%= (0.142 * SCALE).to_i %>
32  gpx_id: 4
33  timestamp: "2009-07-30 17:46:00"
34  tile: <%= QuadTile.tile_for_point(51.512, 0.142) %>
35
Note: See TracBrowser for help on using the repository browser.