[openstreetmap/openstreetmap-website] Added distance of traces to model and view (#1942)
Jamie Guthrie
notifications at github.com
Thu Jul 26 19:55:05 UTC 2018
- Migrated a new column (trace-length)
- Added 'Distance' row in trace view
- Calculates distance between each point using haversine formula
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/1942
-- Commit Summary --
* Added distance of traces to model and view
-- File Changes --
M app/models/trace.rb (8)
M app/views/traces/view.html.erb (3)
M config/locales/en.yml (1)
A db/migrate/20180726180947_add_length_to_trace.rb (9)
M lib/gpx.rb (29)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/1942.patch
https://github.com/openstreetmap/openstreetmap-website/pull/1942.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/1942
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20180726/53c2db0c/attachment.html>
More information about the rails-dev
mailing list