Ask HN: Efficient API to calculate distances?
Google maps seems rather slow for this.
For ~200 displayed fields, need to calculate distance (by road) between a user-input zip and various other zips. Suggestions?
The project in question is finding autocross events within x miles of a user-entered zip, hence the need to do this dynamically, rather than store the data.
1 comment
[ 3.7 ms ] story [ 10.9 ms ] threadIf you can sacrifice even more accuracy, you can use 50-70 miles per degree latitude/longitude and just find results within a certain range of a given lat/lon pair.