Abstract
In the new “gig” economy, a user plays the role of a consumer as well as a service provider. As a service provider, drivers travelling from a source to a destination may opportunistically pickup and drop-off packages along the way if that does not add significantly to their trip distance or time. This gives rise to a new business offering called Package Delivery as a Service (PDaaS) that brokers package pickups and deliveries at one end and connects them to drivers on the other end, thus creating an ecosystem of supply and demand. The dramatic cost savings of such a service model come from the fact that the driver is already en-route to their destination and the package delivery adds a small overhead to an already pre-planned trip. From a technical perspective, this problem introduces new technical challenges that are uncommon in the literature. The driver may want to optimise for distance or time. Furthermore, new packages arrive for delivery all the time and are assigned to various drivers continuously. This means that the algorithm has to work in an environment that is dynamic, thereby precluding most standard road network precomputation efforts. Furthermore, the number of packages that are available for delivery could be in the hundreds of thousands, which has to be quickly pruned down for the algorithm to scale. The paper proposes a variation called dual Dijkstra’s that combines a forward and a backward scan in order to find delivery options that satisfy the constraints specified by the driver. The new dual heuristic improves the standard single Dijkstra’s approach by narrowing down the search space, thus resulting in significant speed-ups over the standard algorithms. Furthermore, a combination of dual Dijkstra’s with a heuristic landmark approach results in a dramatic speed-up compared to the baseline algorithms. Experimental results show that the proposed approach can offer drivers a choice of packages to deliver under specified constraints of time or distance, and providing sub-second response time despite the complexity of the problem involved. As the number of packages in the system increases, the matchmaking process becomes easier resulting in faster response times. The scalability of the PDaaS infrastructure is demonstrated using extensive experimental results.
Similar content being viewed by others
Data Availability
The datasets generated during and/or analysed during the current study are available.
References
Abeywickrama T, Cheema MA, Taniar D (2016) k-nearest neighbors on road networks: a journey in experimentation and in memory implementation. In: Proceedings of the VLDB Endowment, vol 9(6), pp 492–503
Agarwal PK, Erickson J (1999) Geometric range searching and its relatives. Advances in Discrete and Computational Geometry, Contemporary Mathematics 223:1–56
Ahuja R, Magnanti T, Orlin J (1993) Network Flows: Theory, Algorithms, and Applications, 1st edn. Pearson
Ali RY, Gunturi VM, Shekhar S, Eldawy A, Mokbel MF, Kotz AJ, Northrop WF (2015) Future connected vehicles: challenges and opportunities for spatio-temporal computing. In: Proceedings of the 23rd ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems, vol 14, pp 1–4
An N, Jin J, Sivasubramaniam A (2003) Toward an accurate analysis of range queries on spatial data. IEEE Transactions on Knowledge and Data Engineering 15(2):305–323
Bae WD, Alkobaisi S, Kim S, Narayanappa S, Shahabi C (2009) Supporting range queries on web data using k-nearest neighbour search. GeoInformatica 13(4):483–514
Bao J, Chow CY, Mokbel MF, Ku WS (2010) Efficient evaluation of k-range nearest neighbor queries in road networks. In: Proceedings of the Eleventh International Conference on Mobile Data Management, pp 115–124
Cao B, Alarabi L, Mokbel MF, Basalamah A (2015) SHAREK: a scalable dynamic ride sharing system. In: 16th IEEE International Conference on Mobile Data Management, vol 1, pp 4–13
Chen Z, Shen HT, Zhou X, Yu JX (2009) Monitoring path nearest neighbor in road networks. In: ACM SIGMOD International Conference on Management of data, pp 591–602
Cormen TH, Leiserson CE, Rivest RL, Stein C (2009) Introduction to Algorithms, 3rd edn. MIT Press
dataset06 (2006) 9th DIMACS implementation challenge - shortest paths. http://users.diag.uniroma1.it/challenge9/download.shtml
Demiryurek U, Banaei-Kashani F, Shahabi C (2010) TransDec: a spatiotemporal query processing framework for transportation systems. In: 26th International Conference on Data Engineering, pp 1197–2000
Dickerson MT, Goodrich MT, Dickerson TD (2010) Roundtrip voronoi diagrams and doubling density in geographic networks. Transactions on Computational Science 6970:211–238
Dijkstra EW (1959) A note on two problems in connexion with graphs. Numerische Mathematik 1(1):269–271
Eldawy A, Mokbel MF (2015) SpatialHadoop: a MapReduce framework for spatial data. In: IEEE 31st International Conference on Data Engineering, pp 1352–1363
Eppstein D, Goodrich MT (2008) Studying geometric graph properties of road networks through an algorithmic lens. In: Proceedings of the 16th ACM SIGSPATIAL international conference on Advances in geographic information systems, vol 16, pp 1–10
Eppstein D, Gupta S (2017) Crossing patterns in nonplanar road networks. In: Proceedings of the 25th ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems, vol 40, pp 1–9
Geisberger R, Luxen D, Neubauer S, Sanders P, Volker L (2010) Fast detour computation for ride sharing. 10th Workshop on Algorithmic Approaches for Transportation Modelling, Optimization, and Systems pp 88–99
Ghosh D, Gupta P (2016) Roundtrip nearest neighbors on road networks for location based services. In: IEEE International Conference on Computational Intelligence and Computing Research, pp 310–313
Goldberg AV, Harrelson C (2005) Computing the shortest path: A* search meets graph theory. In: Proceedings of the 16th ACM-SIAM Symposium on Discrete Algorithms, pp 156–165
Goldberg AV, Werneck RF (2005) Computing point-to-point shortest paths from external memory. In: Proceedings of the SIAM Workshop on Algorithms Engineering and Experimentation, pp 26–40
Gupta P (2015) Algorithms for road network range queries in location lased services. Proceedings of International Conference on Computational Advancement in Communication Circuits and Systems 335:261–267
Hendawi AM, Bao J, Mokbel MF, Ali M (2015) Predictive tree: An efficient index for predictive queries on road networks. In: 31st International Conference on Data Engineering, pp 1215–1226
Hjaltason GR, Samet H (1995) Ranking in spatial databases. In: Egenhofer MJ, Herring JR (eds) Advances in Spatial Databases—4th International Symposium, SSD’95, Portland, ME, LNCS series 951, pp 83–95
Hu H, Lee D, Lee VCS (2006a) Distance indexing on road networks. In: Proceeding of 32nd International Conference on Very Large Databases, pp 894–905
Hu H, Lee DL, Xu J (2006) Fast nearest neighbour search on road networks. International Conference on Extending Database Technology, LNCS 3896:186–203
Ilarri S, Mena E, Illarramendi A (2010) Location-dependent query processing : Where we are and where we are heading. ACM Computing Surveys 42(3):1–67
Kolahdouzan M, Shahabi C (2004) Voronoi-based K-nearest neighbour search for spatial network databases. In: Proceedings of the 13th international conference on very large databases, vol 30, pp 840–851
Lee KCK, Lee WC, Zheng B, Tian Y (2012) Fast object search on road networks. IEEE Transactions on Knowledge and Data Engineering 24(3):547–560
Ma S, Feng K, Wang H, Li J, Huai J (2014) Distance landmarks revisited for road graphs. arXiv:1401.2690
Mahin MT, Hashem T (2019) Activity-aware ridesharing group trip planning queries for flexible POIs. ACM Transactions on Spatial Algorithms and Systems 5(3):1–41
Matousek J (1994) Geometric range searching. ACM Computing Surveys 26(4):421–461
Nutanong S, Tanin E, Shao J, Zhang R, Ramamohanarao K (2012) Continuous detour queries in spatial networks. IEEE Transactions on Knowledge and Data Engineering 24(7):1201–1215
Papadias D, Zhang J, Mamoulis N, Tao Y (2003) Query processing in spatial network database. In: Proceedings of the 29th VLDB Conference, vol 29, pp 802–813
Peng S, Sankaranarayanan J, Samet H (2016) SPDO: High-throughput road distance computations on Spark using distance oracles. In: Proceedings of the 32nd IEEE International Conference on Data Engineering, Helsinki, Finland, pp 1239–1250
Peng S, Sankaranarayanan J, Samet H (2018) DOS: a spatial system offering extremely high-throughput road distance computations. In: Proceedings of the 26th ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems, pp 199–208
Peque G, Urata J, Iryo T (2018) Preprocessing parallelization for the ALT-algorithm. In: Proceedings of the 18th International Conference on Computational Science, pp 89–101
Pohl I (1971) Bi-directional search. Machine Intelligence 6:127–140
Potamias M, Bonchi F, Castillo C, Gionis A (2009) Fast shortest path distance estimation in large networks. In: Proceedings of the 18th ACM conference on Information and knowledge management, pp 867–876
Qiao M, Cheng H, Chang L, Yu JX (2014) Approximate shortest distance computing: a query-dependent local landmark scheme. IEEE Transactions on Knowledge and Data Engineering 26(1):55–68
Saha RR, Hashem T, Shahriar T, Kulik L (2018) Continuous obstructed detour queries. In: 10th International Conference on Geographic Information Science, vol 114, pp 1–14
Samet H, Sankaranarayanan J, Alborzi H (2008) Scalable network distance browsing in spatial databases. In: Proceedings of the ACM SIGMOD Conference, Vancouver, Canada, pp 43–54
Sankaranarayanan J, Samet H (2009) Distance oracles for spatial networks. In: Proceedings of the 25th IEEE International Conference on Data Engineering, Shanghai, China, pp 652–663
Sankaranarayanan J, Samet H (2010) Roads belong in databases. IEEE Data Engineering Bulletin 33(2):4–11
Sankaranarayanan J, Alborzi H, Samet H (2005) Efficient query processing on spatial networks. In: Proceedings of the 13th ACM International Symposium on Advances in Geographic Information Systems, Bremen, Germany, pp 200–209
Sankaranarayanan J, Samet H, Alborzi H (2009) Path oracles for spatial networks. PVLDB 2(1):1210–1221
Schultes D (2008) Route planning in road networks. PhD thesis, Institut fur Theoretische Informatik
Shang S, Deng K, Xie K (2010) Best point detour query in road networks. In: Proceedings of the 18th SIGSPATIAL International Conference on Advances in Geographic Information Systems, pp 71–80
Sommer C (2014) Shortest-path queries in static networks. ACM Computing Surveys 46(4):1–31
Sun W, Chen C, Zheng B, Chen C, Liu P (2012) An air index for proximity query processing in road networks. IEEE Transactions on Knowledge and Data Engineering 27(2):382–395
Taniar D, Rahayu W (2015) A taxonomy for region queries in spatial databases. Journal of Computer and System Sciences 81(8):1508–1531
Xuan K, Zhao G, Taniar D, Srinivasan B, Safar MH, Gavrilova M (2009) Network voronoi diagram based range search. In: Proceedings of the IEEE International Conference on Advanced Information Networking and Applications, pp 741–748
Yoo JS, Shekhar S (2005) In-route nearest neighbor queries. GeoInformatica 9(2):117–137
Yu J, Zhang Z, Sarwat M (2018) Spatial data management in Apache Spark: the GeoSpark perspective and beyond. Geoinformatica 23(1):37–78
Yuan J, Zheng Y, Zhang C, Xie W, Xie X, Sun G, Huang Y (2010) T-Drive: driving directions based on taxi trajectories. In: Proceedings of the 18th SIGSPATIAL International Conference on Advances in Geographic Information Systems, pp 99–108
Yuen CF, Singh AP, Goyal S, Ranu S, Bagchi A (2019) Beyond shortest paths: route recommendations for ride-sharing. In: The World Wide Web, p 2258-2269
Zheng B, Xu J, Lee WC, Lee L (2006) Grid-partition index: a hybrid method for nearest-neighbor queries in wireless location-based services. International Journal of Very Large Data Bases 15(1):21–39
Funding
Hanan Samet is funded by NSF award 2114451.
Author information
Authors and Affiliations
Contributions
All the authors contributed to the problem definitions, algorithms, experiments, and related work. Debajyoti Ghosh and Jagan Sankaranarayanan contributed to the main manuscript text and prepared figures. Kiran Khatter and Hanan Samet contributed by suggesting revisions, extensions, and commenting on experimental results.
Corresponding author
Ethics declarations
Conflicts of interest
The authors declare that they have no competing interests.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Ghosh, D., Sankaranarayanan, J., Khatter, K. et al. Opportunistic package delivery as a service on road networks. Geoinformatica 28, 53–88 (2024). https://doi.org/10.1007/s10707-023-00497-2
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s10707-023-00497-2