Closed chakeresa closed 5 years ago
Changes proposed in this pull request:
User#distance_to
Resolves #40
The following checks have been completed:
coverage/index.html
git pull origin master
rails db:migrate
Changes proposed in this pull request:
User#distance_to
which takes an argument of a dog or user, and returns the distance in miles between the user it is called on and the object from the argument. The distance is only accurate for small distances (less than ~100 miles). See http://jonisalonen.com/2014/computing-distance-between-coordinates-can-be-simple-and-fast/ for the formulas used.Resolves #40
The following checks have been completed:
coverage/index.html
- did not add any new code that's not covered by testing (if possible)git pull origin master
& resolved merge conflictsrails db:migrate