codeforbtv / foodrescue

2 stars 3 forks source link

use browser-sniffed lat/long instead of mere zip code to calculate distance #16

Closed alexch closed 10 years ago

alexch commented 10 years ago

Currently if we browser-sniff we get a (potentially) more accurate lat/long but immediately convert it to zip code, which could make our distance calculations off by several miles. It'd be nice if we preserved the given lat/long all the way to the results page... unless the user overrides it by entering in a zip on their own, in which case we should discard it and use the given zip's db lat/long.

benglass commented 10 years ago

Resolved by #28