Google Maps API - Find Nearest Locations
<p>I have a spreadsheet of around 250 office locations across the US. I want to have a web page where a user would enter their home address and the five nearest offices (name, city, phone number, etc.) would be listed on the left and the points mapped on the map canvas. Do you know how I can implement this scenario using Google Maps API?</p>

<p>I have figured out how to get the data loaded into the map using GeoJSON, but I have not been able to learn how I can present the five nearest sites based upon driving distance or time. I did find the Distance Matrix Service, but it is limited to 25 destinations per request, so that won’t work.</p>

<p>The haversine method that others have suggested will not work in this scenario, as I need the calculations to be based upon either driving distance, or more usefully, driving time. Also, I do not have access to PHP in this case, but we can use JavaScript.</p>