3 ms·
If you want to do it in-house, you can geocode the customer addresses through geocoder (using Google's API) and use SOLR or elastic search to store the latitude
by gt565k 12y ago
If you want to do it in-house, you can geocode the customer addresses through geocoder (using Google's API) and use SOLR or elastic search to store the latitude and longitude, then do geospatial queries with all the drivers' current coordinates to find the closest driver.
I believe SOLR can handle pretty fast indexing with soft commits, so latency of indexing new records shouldn't be an issue. Not sure about elastic search.
You can always pay Google
Google Distance Matrix:
https://developers.google.com/maps/documentation/distancematrix/ https://developers.google.com/maps/documentation/distancemat...