Last-Mile Delivery Routing Using Ant Colony Optimization and Google Maps API
DOI:
https://doi.org/10.47065/bulletincsr.v6i6.1272Keywords:
Last-Mile Delivery; Ant Colony Optimization; Vehicle Routing Problem; Route Optimization; Google Maps Distance MatrixAbstract
The rapid growth of e-commerce has significantly increased the demand for efficient last-mile delivery, making route optimization an essential challenge for logistics providers. Conventional manual route planning often depends on driver experience and may fail to produce efficient delivery sequences, particularly as the number of destinations increases. This study proposes a web-based last-mile delivery routing optimization system that integrates Residential Delivery Clusters, the Google Maps Distance Matrix Application Programming Interface (API), and the Ant Colony Optimization algorithm to generate practical delivery routes based on actual road-network distances. Residential Delivery Clusters group destinations within the same residential area through representative entrance points, enabling the routing model to better reflect real-world delivery environments while reducing route complexity. The proposed system was evaluated using seven real delivery scenarios containing between 5 and 62 delivery locations obtained from an expedition service in Bekasi Regency, Indonesia. Experimental results demonstrate that the proposed approach consistently improved routing performance by reducing total travel distance by 0.07% to 23.91% compared with manually planned routes. Notably, the optimal testing scenario comprising 62 delivery points achieved a substantial travel distance saving of 60.62 km. Furthermore, route planning time was reduced by 60.2% to 89.6% relative to manual planning performed by experienced expedition drivers. These findings indicate that integrating residential delivery clustering with road-network-based optimization can improve routing efficiency and substantially reduce operational planning effort, making the proposed approach suitable for practical implementation in real-world last-mile delivery operations.
Downloads
References
Badan Pusat Statistik, Statistik E-Commerce 2019. Jakarta: Badan Pusat Statistik (BPS-Statistics Indonesia), 2019.
Pusat Kebijakan Perdagangan Domestik, “Kinerja Perdagangan Melalui Sistem Elektronik (PMSE) Indonesia Tahun 2025,” Jakarta, 2025. Accessed: May 22, 2026. [Online]. Available: https://bkperdag.kemendag.go.id/unduhan-file/a11ba920-123c-4a4f-856b-cdbb1f0f64c4
N. Masorgo, D. D. Dobrzykowski, and B. S. Fugate, “Last?Mile Delivery: A Process View, Framework, and Research Agenda,” Journal of Business Logistics, vol. 45, no. 4, Oct. 2024, doi: 10.1111/jbl.12397.
S. Elatar, K. Abouelmehdi, and M. E. Riffi, “The Vehicle Routing Problem in the Last Decade: Variants, Taxonomy and Metaheuristics,” in Procedia Computer Science, Elsevier B.V., 2023, pp. 398–404. doi: 10.1016/j.procs.2023.03.051.
Q. Ni and Y. Tang, “A Bibliometric Visualized Analysis and Classification of Vehicle Routing Problem Research,” May 01, 2023, MDPI. doi: 10.3390/su15097394.
A. A. Juan, M. Rabe, M. Ammouriova, J. Panadero, D. Peidro, and D. Riera, “Solving NP-Hard Challenges in Logistics and Transportation under General Uncertainty Scenarios Using Fuzzy Simheuristics,” Algorithms, vol. 16, no. 12, Dec. 2023, doi: 10.3390/a16120570.
W. F. Mahmudy, A. W. Widodo, and A. H. Haikal, “Challenges and Opportunities for Applying Meta-Heuristic Methods in Vehicle Routing Problems: A Review †,” Engineering Proceedings, vol. 63, no. 1, 2024, doi: 10.3390/engproc2024063012.
Neil. Urquhart, Nature Inspired Optimisation for Delivery Problems: From Theory to the Real World. Springer, 2022.
Y. Su, J. Liu, X. Xiang, and X. Zhang, “A Responsive Ant Colony Optimization for Large-scale Dynamic Vehicle Routing Problems via Pheromone Diversity Enhancement,” Complex and Intelligent Systems, vol. 7, no. 5, pp. 2543–2558, Oct. 2021, doi: 10.1007/s40747-021-00433-7.
P. N. Ky Phuc and N. Le Phuong Thao, “Ant Colony Optimization for Multiple Pickup and Multiple Delivery Vehicle Routing Problem with Time Window and Heterogeneous Fleets,” Logistics, vol. 5, no. 2, Jun. 2021, doi: 10.3390/logistics5020028.
M. F. Ibrahim, M. I. Mustofa, P. Meilanitasari, and S. U. Wijaya, “An Improved Ant Colony Optimization Algorithm for Vehicle Routing Problem with Time Windows,” in Jurnal Teknik Industri, Universitas Muhammadiyah Malang, 2022, pp. 105–120. doi: doi:10.22219/jtiumm.vol23.no2.105-120.
S.-H. Huang, Y.-H. Huang, C. A. Blazquez, and C.-Y. Chen, “Solving the Vehicle Routing Problem With Drone for Delivery Services Using an Ant Colony Optimization Algorithm,” Advanced Engineering Informatics, vol. 51, p. 101536, Jan. 2022, doi: 10.1016/j.aei.2022.101536.
N. Guo, B. Qian, J. Na, R. Hu, and J.-L. Mao, “A Three-Dimensional Ant Colony Optimization Algorithm for Multi-compartment Vehicle Routing Problem Considering Carbon Emissions,” Appl. Soft Comput., vol. 127, p. 109326, Sep. 2022, doi: 10.1016/j.asoc.2022.109326.
T. H. Nguyen and J. J. Jung, “ACO-based traffic routing method with automated negotiation for connected vehicles,” Complex and Intelligent Systems, vol. 9, no. 1, pp. 625–636, Feb. 2023, doi: 10.1007/s40747-022-00833-3.
D.-T. Chu, X.-Y. Cheng, L.-Y. Bai, and H.-F. Ling, “MCAH-ACO: A Multi-Criteria Adaptive Hybrid Ant Colony Optimization for Last-Mile Delivery Vehicle Routing,” Sensors, vol. 26, no. 2, p. 401, Jan. 2026, doi: 10.3390/s26020401.
X. Ma and C. Liu, “Improved Ant Colony Algorithm for the Split Delivery Vehicle Routing Problem,” Applied Sciences (Switzerland), vol. 14, no. 12, Jun. 2024, doi: doi:10.3390/app14125090.
M. Ashour, A. Elsaeed, Y. Mesalam, and R. Elshaer, “A Hybrid Multi-level Ant Colony Optimization Framework for Integrated Production Scheduling and Vehicle Routing,” Sci. Rep., vol. 15, no. 1, Dec. 2025, doi: doi:10.1038/s41598-025-21231-y.
H. Ali and K. Saleem, “Generating large-scale real-world vehicle routing dataset with novel spatial data extraction tool,” PLoS One, vol. 19, no. 6 June, Jun. 2024, doi: 10.1371/journal.pone.0304422.
J. G. Carlsson, S. F. W. T. Lim, S. Liu, H. Yu, W. Arntong, and E. H. Tan, “Redesigning Zoning Systems for Equitable and Efficient Last-Mile Delivery at Ninja Van,” INFORMS Journal on Applied Analytics, vol. 55, no. 5, pp. 412–423, Sep. 2025, doi: doi:10.1287/inte.2025.0247.
N. Moradi, I. Sadati, and B. Çatay, “Last Mile Delivery Routing Problem using Autonomous Electric Vehicles,” 2023. doi: doi:10.1016/j.cie.2023.109552.
M. Abdul Rahman, M. Aamir Basheer, Z. Khalid, M. Tahir, and M. Uppal, “Last Mile Logistics: Impact of Unstructured Addresses on Delivery Times,” in International Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences - ISPRS Archives, International Society for Photogrammetry and Remote Sensing, Oct. 2022, pp. 3–8. doi: doi:10.5194/isprs-archives-xlviii-4-w5-2022-3-2022.
Google, “Routes API – Compute Route Matrix Documentation.” Accessed: Jul. 17, 2026. [Online]. Available: https://developers.google.com/maps/documentation/routes/reference/rest/v2/TopLevel/computeRouteMatrix
M. Dorigo and L. M. Gambardella, “Ant Colony System: A Cooperative Learning Approach to the Traveling Salesman Problem,” IEEE Transactions on Evolutionary Computation, vol. 1, no. 1, pp. 53–66, Apr. 1997, doi: 10.1109/4235.585892.
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Last-Mile Delivery Routing Using Ant Colony Optimization and Google Maps API
ARTICLE HISTORY
How to Cite
Issue
Section
Copyright (c) 2026 Yudy Purnama, Hans Christian Conrad, Hanrich Marcius, Robert Martin

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution 4.0 International License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (Refer to The Effect of Open Access).













