calblueprint / dccentralkitchen

Customer mobile app and rewards program for DC Central Kitchen's Healthy Corners initiative
https://dccentralkitchen.org/HealthyCornersApp
GNU General Public License v3.0
9 stars 4 forks source link

Update store distance calculation #68

Open wangannie opened 4 years ago

wangannie commented 4 years ago

Currently, store distance 'miles away' from the user's current location is calculated by the distance between long/lat coordinates. This is pretty inaccurate and not very helpful in real use, so we should look into a way to calculate the distance by walking or driving directions.

annieyro commented 4 years ago

TLDR I think this is a design decision, but here are some reasons why it makes sense to use Euclidean distance for display in the store list: