2 points · by gnikflow · 11y ago · 5 comments
1) Given a new order, who will be the fastest driver to arrive at the pickup?
2) Use our own historical driver data to estimate drive times in the future.
3) Caching and solving similar problems
4) In general, using our own data so we are not just querying google for everything
So far I've looked at postgis, simple caching in redis, redis-geo, and solr spatial search. I'm just curious if anyone has any ideas on the topic. Thanks!
looks like they had a further extension solving a very similar problem (Dial-a-ride-problem, DARP[1]) in their 1.x versions. I can't find it in their current docs, but it may be just an issue of how the reference it. Take a look through their stuff, it sounds like it'd be very helpful.
[0] - http://pgrouting.org/ [1] - http://gis.stackexchange.com/questions/5330/route-optimisati... (see first answer)
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/distancemat...
The routing piece is the hardest. But if you don't have to do that then you just need something that stores groupings. For that matter if the points are a finite list that gets loaded as new then you don't even really need to store it as spatial data. Just list of drivers, destinations, times and you should be able to determine who gets where fastest.