openstreetmap-website/test/fixtures/gps_points.yml
Tom Hughes 565171486f 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.
2009-08-13 17:06:11 +00:00

35 lines
900 B
YAML

<% SCALE = 10000000 unless defined?(SCALE) %>
first_trace_1:
altitude: 134
trackid: 1
latitude: <%= 1 * SCALE %>
longitude: <%= 1 * SCALE %>
gpx_id: 1
timestamp: "2008-10-01 10:10:10"
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) %>