Next Article in Journal
Conceptualizing Warehouse 4.0 Technologies in the Third-Party Logistics Industry: An Empirical Study
Previous Article in Journal
Integrating CRM, Lean Practices, and Use of IT to Enhance Operational Performance: The Mediating Role of Quality Information Sharing
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

ML and Statistics-Driven Route Planning: Effective Solutions Without Maps

Institute of Logistics, University of Miskolc, 3515 Miskolc, Hungary
Logistics 2025, 9(3), 124; https://doi.org/10.3390/logistics9030124
Submission received: 24 July 2025 / Revised: 28 August 2025 / Accepted: 29 August 2025 / Published: 1 September 2025
(This article belongs to the Section Artificial Intelligence, Logistics Analytics, and Automation)

Abstract

Background: Accurate route planning is a core challenge in logistics, particularly for small- and medium-sized enterprises that lack access to costly geospatial tools. This study explores whether usable distance matrices and routing outputs can be generated solely from geographic coordinates without relying on full map-based infrastructure. Methods: A dataset of over 5000 Hungarian postal locations was used to evaluate five models: Haversine-based scaling with circuity, linear regression, second- and third-degree polynomial regressions, and a trained artificial neural network. Models were tested on the full dataset, and three example routes representing short, medium, and long distances. Both statistical accuracy and route-level performance were assessed, including a practical optimization task. Results: Statistical models maintained internal consistency, but systematically overestimated longer distances. The ANN model provided significantly better accuracy across all scales and produced routes more consistent with map-based paths. A new evaluation method was introduced to directly compare routing outputs. Conclusions: Practical route planning can be achieved without GIS services. ML-based estimators offer a cost-effective alternative, with potential for further improvement using larger datasets, additional input features, and the integration of travel time prediction. This approach bridges the gap between simplified approximations and commercial routing systems.

1. Introduction

In the modern world, route planning plays a key role both for companies managing complex logistics and for everyday people navigating their daily lives. While many individuals rely on routing technologies unknowingly through mobile applications, large companies often establish dedicated departments or outsource route-related operations to specialized service providers. These entities are responsible for managing deliveries, returns, packaging workflows, and other logistical processes that require precise, efficient coordination.
Such professional environments typically rely on advanced route planning software, composed of several interconnected modules, such as scheduling components, load-balancing engines, traffic prediction units, and vehicle capacity optimizers. Among these, one of the most critical and most expensive parts is the geospatial mapping module. This layer provides essential map data, including road networks, nodes, and spatial relationships, which form the foundation for accurate route computation. The continuous updating of this data with real-time traffic conditions, new infrastructure, and closures is often maintained through subscription-based services that charge significant monthly or annual fees.
Small- and medium-sized enterprises (SMEs) frequently cannot afford such solutions. As a result, they tend to fall back on manual methods or free-to-use online maps, such as Google Maps [1]. However, these platforms are not designed for large-scale optimization and often fail to deliver cost-efficient routing, especially when the number of stops and delivery constraints increases. Furthermore, even “free” platforms typically impose daily usage quotas or start charging once a threshold is crossed.
A core requirement for optimal routing is the availability of a full distance matrix—that is, a dataset containing all pairwise distances between route points [2]. In most cases, obtaining such a matrix directly from map services is infeasible due to both cost and query limitations. This study explores an alternative approach, aiming to infer the complete distance matrix without relying on expensive map-based queries.
This study explores how route planning can be achieved without relying on costly or limited-access geospatial data. It begins with an (1) overview of existing methods proposed in the literature for estimating complete distance matrices. Building on this foundation, (2) statistical techniques are presented, including ones the author commonly uses. To improve these traditional methods, (3–4) a machine learning approach using artificial neural networks (ANNs) is introduced, aiming to enhance accuracy while maintaining simplicity and low cost. The practical potential of the method is demonstrated through a (5) layered case study involving real-world routing tasks between locations in Hungary. The (6) results are then validated against actual distances, and the findings are critically evaluated to assess the reliability, scalability, and practical value of the proposed approach.

2. Literature Review

The task of approximating real-world distances for logistical planning has received significant attention in both academic and industrial domains, driven by the demand for scalable, efficient, and cost-effective routing solutions. Applications such as last-mile delivery, on-demand mobility, and supply chain optimization often rely on reliable distance estimations—even in settings where detailed geospatial data is unavailable or prohibitively expensive [3]. Across transportation science, operations research, and computational geography, various techniques have been developed, ranging from heuristic models to advanced data-driven methods. A key area of focus involves generating or approximating distance matrices—critical inputs for routing algorithms—without full dependence on commercial GIS platforms or costly APIs.
Traditional routing methods, including Dijkstra’s algorithm [4], A* and its variants [5], and Rapidly-exploring Random Trees [6], typically depend on comprehensive geospatial data and detailed road network information. However, such data is not always accessible, especially for small- and medium-sized enterprises. To address this, lightweight alternatives have emerged, notably the Haversine formula, which calculates great-circle (straight-line) distances using latitude and longitude coordinates. For instance, in the study “Determine the Shortest Path Problem Using Haversine Algorithm” [7], the authors used the formula to match students in Depok, Indonesia, to nearby schools based on proximity within zoning policies. The Haversine method also proves useful in contexts such as maritime asset tracking [8] and indoor industrial positioning systems [9].
In some implementations, the Haversine formula is combined with other algorithms to improve path selection, as in the GIS-based navigation system developed by Indra Surya Permana et al. [10]. They integrated the formula with a Greedy algorithm to locate the nearest art gallery from the user’s location. However, in this study, no such combination or modification was necessary; the Haversine algorithm was used purely as a data generation tool. This is similar to its role in the work of Baumbach et al. [11], where it was employed for graph construction in spatial-temporal modeling for graph neural networks (GNNs), though their focus was on network optimization rather than classical distance estimation.
Several other studies also treat Haversine as a supporting utility rather than a primary subject of evaluation. In “Optimized Bus Route Finder for Educational Institutes Using Haversine Formula” [12], the method is used to enhance the geospatial functionality of a transportation system by identifying the nearest bus stops from a user’s coordinates—again, not as a benchmarked algorithm, but as a backend calculation mechanism.
To bridge the known gap between straight-line and real-world road distances, various regression-based methods have been introduced. One notable example is the large-scale study by Boscoe et al. [13], which compared hospital accessibility in the U.S. using straight-line and driving distances. They reported strong correlations (R2 > 0.9), with linear scaling coefficients between 1.1 and 1.417, demonstrating the practical viability of approximate methods when detailed data is unavailable. It is also referred to as the circuity factor, and several other studies have provided empirical estimates of its value.
The circularity factor (also known as detour index or route factor) is a simple metric used in route planning to compare the actual traveled distance (e.g., road or path) with the straight-line (as-the-crow-flies) or Haversine distance between two points. It is calculated as:
C i r c u l a r i t y   F a c t o r = A c t u a l   r o u t e   d i s t a n c e S t r a i g h t l i n e   d i s t a n c e
A circularity factor of 1 indicates a perfectly straight route, while values greater than 1 reflect increasing inefficiency due to detours or indirect paths. This method is widely used by researchers and practitioners alike who aim to estimate the real-world travel distance between two geographic points.
For example, in “Selected Country Circuity Factors for Road Travel Distance Estimation” [14], the reported average values range from as low as 1.12 to as high as 2.10, with standard deviations between 0.05 and 1.96. Variations between countries or regions are attributed to multiple factors, including city-pair sample size, road network density and connectivity, natural barriers such as mountains, lakes, and seas, the presence of restricted areas like military bases or reservations, terrain slope, the accuracy of road mapping, and the precision of location coordinate data. Also, Giacomin & Levinson [15] analyzed circuity in 51 major U.S. metropolitan areas from 1990 to 2010 and found a general increase, with 35 MSAs showing significant growth. Short trips were more circuitous than long ones, and a distance-decay function was introduced to describe this relationship, with parameters changing over time. While Kweon in 2019 [16] calculated circuity factors for 27 forest roads in South Korea, classifying them as ridge, mid-slope, or valley. Weighted averages were 2.09 for mid-slope, 1.36 for ridge, and 1.09 for valley roads, with unweighted values showing similar patterns. Mountain terrain had the greatest impact, and mid-slope circuity increased with distance, unlike ridges or valleys.
Stigell and Schantz [17] conducted a composite study in Stockholm comparing four commuting distance estimation methods—self-estimation, straight-line, GIS shortest route, and GPS—against map-drawn criterion routes. All methods exhibited systematic biases: self-estimation generally overestimated, straight-line underestimated, GIS results varied, and GPS slightly overestimated. While average errors could be corrected, individual deviations persisted. Compared to criterion distances, self-estimated distances averaged 114 ± 63%, straight-line 79.1 ± 10.5%, GIS 112–121 ± 22%, and GPS 105 ± 4%, demonstrating consistent systematic bias across all methods.
More recently, machine learning—especially artificial neural networks—has been applied to route prediction and travel time estimation tasks [18,19]. These methods are particularly useful in domains such as robot navigation, traffic forecasting, and delivery routing, where complete map data may be inaccessible or unnecessary.
Rui Si et al. [20] investigated how environmental factors shape intra-urban travel distance patterns using ride-hailing data divided into 1 × 1 km grid cells. Applying Extreme Gradient Boosting with SHAP analysis, they found that travel distances follow a log-normal distribution with strong spatial heterogeneity, influenced by variables such as proximity to the city center, bus station density, land use entropy, and company density. Many of these factors showed nonlinear and threshold effects, providing new insights into urban mobility dynamics.
Jeonghyeon and Seungku [21] developed a self-learning travel distance estimation method for robots using wheel encoder data and GNSS-based distance labels. Their deep self-learning approach reduces the impact of road surface noise, which is a major limitation of traditional wheel odometry, and allows for efficient, on-demand model generation for different environments. Experiments with a custom-built vehicle showed about a 30% improvement in accuracy compared to conventional methods.
Overall, related work on distance estimation and routing can be grouped into two main categories. The first category, stand-alone distance estimation methods, focuses on predicting travel distances independently from routing. These include geometric and heuristic formulas such as the Haversine calculation [7,8,9,10,11,12], statistical or regression-based scaling methods, and circuity factor–based approaches, where straight-line distances are adjusted using empirically derived coefficients; values for these factors, collected from various studies, are summarized in Table 1 [13,14,15,16,17]. The second category, integrated distance estimation and routing, combines estimation with practical route optimization to evaluate both statistical accuracy and operational usability. This includes machine learning–based applications [18,19], environmental factor–driven travel pattern modeling [20], and self-learning robotic distance estimation methods [21].
Based on the above considerations, the study seeks to address the following research questions:
  • Can accurate distance matrices be created using only geographic coordinates, without expensive mapping services?
  • Can an artificial neural network outperform traditional statistical models in estimating real-road distances, even on unknown road networks?
  • Can this AI-based distance estimation approach be effectively used for real route planning in small- and medium-sized businesses without full map infrastructure?
  • Do SMEs incur losses when using estimates for route planning, and how large are these losses across different methods?
Unlike prior works that validate approximations only statistically, this paper tests whether such estimates can drive route optimization decisions reliably. The models are embedded into routing frameworks and compared with actual map-based outcomes, offering a new perspective on how predictive methods perform when deployed in constrained environments. This provides a practical benchmark for evaluating lightweight alternatives to full GIS-based planning systems.

3. Basics of Problems, Data Collection and Processing

In this research, two fundamental problems are addressed: the generation of a reliable distance matrix and the subsequent optimization of routing based on that matrix. To evaluate distance matrix generation methods, three approaches—Haversine-based scaling, polynomial regression, and the proposed Artificial Neural Network (ANN)—were compared against Google Maps reference distances using both overall dataset performance and range-specific subsets (short, medium, and long distances). Accuracy was quantified using the error metric: root mean square error (RMSE). A real-world case study validated the practical applicability of each method in operational routing scenarios. The results show that while traditional statistical approaches perform adequately, the ANN provides a strong balance of accuracy and computational efficiency, positioning it as a competitive alternative to state-of-the-art estimation techniques reported in the literature.

3.1. Problem Definition: Distance Matrix Generation

The first fundamental problem addressed in this research is the generation of an N × N distance matrix D, which represents the estimated road travel distances between N given locations. In practical terms, this matrix is the foundation for any routing optimization task, as it defines the “cost” of traveling between each pair of points. In the context of this study, the only available input for distance estimation is the set of geographic coordinates (lati, loni) for each location, without direct access to complete GIS data or precomputed road network information.
Three different approaches are considered for filling the matrix:
  • Statistical formulas, such as variations of the Haversine method, which provide quick, low-cost approximations of great-circle distances.
  • Artificial Neural Network (ANN) models, trained on a sample of road distances obtained from a reliable source, with the goal of learning a mapping between coordinate pairs and real travel distances.
  • Reference distances directly retrieved from the Google Maps Distance Matrix API, which serves as the ground truth benchmark for evaluation.
The output of this process is a symmetric matrix where each element Dij contains the estimated travel distance from location i to location j. This matrix is then used as the primary input for the routing procedure described in Section 3.2.

3.2. Problem Definition: Routing Procedure

The second fundamental problem is the determination of an optimal visiting sequence for a set of N locations, using the generated distance matrix as the cost function. In this case, the input is the N × N matrix D along with any problem-specific constraints, such as fixed start and end points or required order constraints between certain locations.
For solving this problem in a simple yet effective way, the evolutionary optimization method of the Solver add-in in Microsoft Excel is employed. This method is well suited for the study’s goals because it requires minimal additional infrastructure and can be run on standard office software, making it accessible for small- and medium-sized enterprises without dedicated routing software. The Solver aims to minimize the total route length, as defined by the sum of the distances for the chosen visiting order.
The output of the routing procedure consists of the following:
  • An ordered list of locations that represents the computed optimal visiting sequence.
  • The total estimated route length associated with that sequence.
This procedure is applied using distance matrices generated by all three estimation methods described in Section 3.1.

3.3. Data Collection and Processing

Accurate distance estimation and efficient routing cannot be addressed in isolation; both depend on the quality of the underlying geospatial data. Every statistical or machine learning-based method relies fundamentally on the availability of structured, reliable data. In the context of route planning, this requirement translates into the need for accurate geospatial information: the geographic coordinates of locations and the actual distances between them. Fortunately, today’s mapping platforms offer highly developed tools and APIs that make it possible to collect such data, even at a large scale.
For this study, geospatial data was gathered via Google’s internal platform, the Google Cloud Console, specifically using the Distance Matrix API. Although this service provides highly detailed and accurate route data, the data collection process proved to be more complex than expected. Initially, randomly generated GPS coordinates were used as test points. The Google Maps engine often fails to calculate routes between coordinates that do not match identifiable locations or valid addresses. Instead of serving as an exact geolocation tool, it behaves more like a search engine: trying to interpret the user’s intent based on textual inputs like place names or address fragments. While it is technically possible to work with randomly generated coordinates by using an additional API to identify nearby valid locations and then selecting the closest address, this approach was found to be highly inefficient, requiring a large number of API queries to obtain even a single usable data point. For this reason, real addresses were ultimately used in the study to ensure data quality and reduce the overhead of excessive API calls.
As a more effective approach, it required precise addresses including ZIP code, city, street, and house number. These addresses had to be geographically varied and consistently mappable. After evaluating several public datasets, the most complete and convenient source was found on GitHub [22], where a community-maintained dataset based on Hungarian postal service locations is available. This dataset includes detailed information about post offices, drop-off points, parcel lockers, local branches, and other related service locations, with the direct link provided in the Data Availability Statement of this article. In total, the database included 6237 distinct points across the country—which is more than all the municipalities in Hungary—including more than 800 in Budapest alone.
From this source, a representative sample of 5000 location points was selected. These were randomly paired, and for each pair, the travel distance was retrieved using the Google Maps Distance Matrix API. The travel distances returned by the API are inherently accurate; if a computation is not possible, the API returns a NaN value. Minor inaccuracies can, however, arise from mismatches between coordinates and valid addresses, typically due to human error in the source data. These imperfections are common across databases and cannot be eliminated. In this study, such inconsistencies were intentionally retained in the training dataset, as they generally do not interfere with the model’s learning process and may even enhance generalization by reducing the risk of overfitting. The acquired dataset now serves as the basis for comparison between actual road distances and approximate distances calculated using simpler methods.
One such method is the Haversine formula, which estimates the straight-line (“as-the-crow-flies”) distance between two points on the Earth’s surface using their GPS coordinates. Although it assumes a perfect sphere (and the Earth is more accurately modeled as an oblate spheroid), it offers a solid approximation for many practical purposes.
The Haversine formula is as follows:
d h a v = 2 × 6371   k m × a r c s i n 1 cos φ + c o s φ 1 × c o s φ 2 × 1     c o s ( θ ) 2
where φ 1 and φ 2 are the latitudes of point 1 and point 2, respectively (in radians), and their difference is φ . Also θ is the difference between the longitudes of the two points, also in radians. This formula provides an efficient way to compute approximate distances without relying on map queries.
While the study focuses on estimating physical distance between points, it is acknowledged that real-world route optimization is also influenced by variables such as traffic conditions, road quality, and time-dependent factors. These additional factors can, of course, be superimposed on the baseline distance estimation; however, it is maintained that obtaining a reliable and scalable distance metric is a prerequisite—without it, there is no foundation on which such variables can be overlaid. For this reason, the simplest and most widely available data source—geographic coordinates—has been deliberately prioritized, since traffic or road condition data are not always readily accessible in a cost-effective and scalable manner.
A subset of the collected data, including sample coordinate pairs and corresponding distances, is shown in Table 2. Each row in the table contains, following its index number, the origin and destination point identifiers, their full query address, latitude and longitude coordinates, the actual road distance retrieved from the map service (in kilometers), and the straight-line distance calculated using the Haversine formula.
As shown in Table 2b, the measured distances appear in identical pairs, since the data was extracted in a sorted and symmetrical manner. In contrast, the Haversine-based estimates display noticeable asymmetry—particularly over shorter distances—due to rounding effects and the directional sensitivity of the formula when applied to closely spaced coordinate pairs. Nevertheless, a clear visual correlation is evident between the estimated and the actual distances. To quantify this relationship, Pearson correlation analysis was conducted on the 5000 sample, yielding a coefficient of r = 0.9581, which indicates a very strong positive correlation. This confirms that, despite its approximate nature, the Haversine formula effectively captures the overall pattern of real-world distances retrieved from the map service.
This strong correlation is also clearly illustrated in Figure 1, where the x-axis represents the distances calculated using the Haversine formula, and the y-axis shows the corresponding values retrieved from the geospatial map data. Most of the data points fall tightly between two bounding lines with slopes of approximately 1.1 and 1.5, indicating consistent proportionality. When calculating the average slope across the full sample, the result is approximately 1.3613. Based on prior experience from both research and teaching, it is often recommended that when precise measurements are unavailable, multiplying the straight-line distance by this factor provides a reasonably good estimate. However, just how reliable this heuristic truly is will be examined in more detail in the following section.
Further insight from Figure 1 confirms that real-world data was used, as the distribution includes a small number of points with significant deviations. Notably, any data point falling below the y = x line (that is, with a slope less than 1, showed by the red rectangle) should theoretically not exist, since no real-world route (excluding tunnels or underground shortcuts) can be shorter than the straight-line (Haversine) distance. Such anomalies likely indicate errors in the coordinate data, possibly due to incorrect or mismatched location entries, or due to improperly recorded coordinates during data collection.
These anomalous records were removed during the statistical analysis, as their presence could distort the calculated relationships and bias the results. However, they were deliberately retained in the machine learning phase, in the training of the artificial neural network (ANN) model. This decision assumed that such outliers might contribute useful variance to the learning process, potentially improving the model’s generalization capabilities and robustness in real-world applications.

4. Distance Estimation with Different Methods

In this chapter, four statistical estimation methods and one machine learning approach will be presented. The analysis is conducted on both the complete dataset and three segmented subsets, in order to examine patterns and assess consistency across different data partitions.
As outlined in the previous chapter, the statistical estimations are based on formulas derived from the Haversine calculation. This method is widely applied due to its straightforward implementation and the ease of acquiring geographic coordinates from online geospatial data sources. In contrast to computing a full distance matrix—which scales almost quadratically: n × ( n 1 ) datapoint for n locations. Haversine-based estimations can be calculated rapidly and independently. This makes them a highly practical and resource-efficient alternative, particularly when working with large datasets.

4.1. Statistical Estimation of Distances

Of the four statistical estimation methods presented in this chapter, one has already been introduced as a practical rule of thumb used as the circularity factor: multiplying the straight-line (Haversine) distance by the average observed slope factor, approximately 1.3613, this represented by Equation (3). A second method is based on the linear trendline clearly visible in Figure 1, which models the relationship between estimated and actual distances using least-squares linear regression, which is Equation (4). The remaining two methods are also derived from the same dataset but apply second (5)- and third-degree (6) polynomial trendlines, respectively. These polynomial regressions were generated using Excel’s built-in curve-fitting tools, allowing for quick and convenient approximation based on the overall shape of the data distribution.
d a v g = 1.3613 × d h a v
d l i n = 1.216 × d h a v + 7.7337
d p o l i 2 = 0.0011 × d h a v 2 + 1.5119 × d h a v 3.5908
d p o l i 3 = 8.12 × 10 6 × d h a v 3 + 0.0033 × d h a v 2 + 0.9373 × d h a v + 9.0148
Using the samples from Table 2, the corresponding distance values were calculated and are presented in Table 3. The last column of the table displays the output of the best-performing machine learning model, based on the trained artificial neural network, which yielded the most accurate estimations among all tested methods.
As shown in Table 3, the average-based distance estimation may initially appear reasonable for shorter distances. However, this method tends to distort the overall results. At low values, fractional differences are less perceptible, leading to underestimated variance, while at higher distances (even within this limited sample) the method significantly overestimates actual values. In fact, this overestimation is consistent across nearly all ranges.
The distance estimation based on a simple linear equation provides more acceptable results—particularly for longer distances—where it closely aligns with the actual values. The second- and third-degree polynomial estimations exhibit similar trends: they perform reasonably well for medium and high distances but introduce considerable error at short ranges. In some cases, the second-degree polynomial even produces negative values, which are clearly invalid in this context. Among all tested methods, the machine learning model delivered the most accurate overall performance. Although it tended to overpredict short distances by nearly doubling them, it approximated medium and long distances with more precision than any of the statistical models.
In addition to the overall analysis performed on the full dataset, the statistical behavior of the models was also examined across three distance-based subsets: under 10 km, between 10 and 40 km, and above 40 km. The choice of these thresholds was inspired in part by the approach of Giacomin et al. [15], but adapted to the specific geographical context of Hungary. Distances under 10 km generally correspond to intra-city travel within larger urban areas; the 10–40 km range represents suburban or regional (intra-county) movement; and distances above 40 km are considered intercity or national-level travel. This segmentation enables a clearer understanding of how the estimation models perform across short-, medium-, and long-distance scenarios.
To characterize the distributions within each group, the ratio of actual road distance to the calculated distance was computed. For each subset, the mean and standard deviation of this ratio were calculated, offering insight into how consistently each model approximates real-world travel distances at different scales.
The trends in Table 3 are also evident in Table 4, which presents the mean values and standard deviations of the actual-to-Haversine distance ratios across the entire dataset, as well as within the short-, medium-, and long-distance subsets. This breakdown further illustrates how estimation accuracy and variability differ depending on the distance range.
The results presented in Table 4 reveal distinct patterns in how the five estimation techniques behave across different distance ranges. Ideally, the best estimation method would produce an average ratio close to 1, indicating unbiased predictions, and a standard deviation as low as possible, reflecting consistent and stable performance across all samples.
The average-based method tends to slightly be overestimated in all cases, with a full-set average of 1.06. However, its reliability is poor at short distances (below 10 km), where both the mean (1.22) and the standard deviation (2.23) indicate significant variability. This method performs more consistently in the long-distance range, where its average (1.06) and standard deviation (0.39) become more stable.
The linear regression estimation model shows a clear improvement as the distance increases. While it strongly overestimates short distances (Avg. = 2.75, SD = 3.28), it provides accurate and consistent estimates for distances above 40 km (Avg. = 1.02, SD = 0.35), suggesting that the linear model captures long-range trends better than local variations.
Second- and third-degree polynomial regressions follow a similar pattern. Both perform poorly at short distances, with the second-degree model showing particularly unreliable results. For medium and long distances, these models become more stable, with averages approaching 1 and lower standard deviations, although they never fully outperform the linear method.
In contrast, the machine learning-based approach using artificial neural networks provides the most balanced and robust performance across all ranges. While it modestly overestimates short distances (Avg. = 1.12), it maintains a relatively low standard deviation (1.20), and its accuracy improves significantly in the medium (SD = 0.66) and long (SD = 0.36) distance segments. These results indicate that the ML model adapts better to a wide variety of cases, offering consistent estimations regardless of scale.
The same procedure was applied to a dataset containing addresses and geographic coordinates from Denmark, in order to examine the solutions produced without retraining the ANN. The outputs, presented in Table 5, reflect the model’s ability to generalize to a geographical context different from that of the training data.
In Table 5, more consistent estimations were observed across all distance ranges compared to the Hungarian results in Table 4. It appears that Denmark possesses a much more efficient road network, as standard statistical estimation methods performed better, with significantly lower standard deviations. Short distances were estimated more accurately, particularly by the average-based method, which showed greater stability than in the Hungarian case. While the machine learning method was not fine-tuned for the Danish dataset and therefore performed slightly worse, its accuracy was not significantly affected. Overall, long-distance estimations were handled reliably in both countries, but greater consistency and balance were achieved in the Danish results.

4.2. Machine Learning Model-Based Approach for Destination Approximation

For this study, a machine learning framework was developed to perform regression using an artificial neural network model, implemented entirely within the MATLAB (ver. R2024a) environment. The goal was to predict a normalized target variable based on geospatial input features related to movement or location-based events. The system was executed on a standard consumer-grade computer, highlighting the feasibility of developing and training deep learning models without access to specialized hardware or software libraries: AMD Ryzen 7 5700X (8-core, 4.65 GHz) CPU, 32 GB of DDR4 RAM, and an NVIDIA Ge-Force RTX 4060 Ti GPU (8 GB VRAM).
The dataset used for training consisted of five input features per sample, all of which were normalized. These features included one value calculated using the haversine formula—representing the geographic distance between two locations—and four coordinate values corresponding to the latitude and longitude of both the departure and destination points. This combination allowed the neural network to learn latent spatial relationships and model complex transitions between locations, making the setup suitable for applications such as travel time prediction, routing, or location-based behavior analysis.
Initial experiments used sigmoid activation functions in all layers of the neural network. While the model exhibited partial learning, its performance was limited to a narrow range of output values. Specifically, improvements were observed only for small or large target values, but not across the entire output domain. This behavior indicated the presence of vanishing gradients, a common limitation of sigmoid activations in deeper architectures, which can result in the optimizer failing to effectively update weights in earlier layers.
To address these limitations, the internal structure of the network was modified to employ the Rectified Linear Unit (ReLU) activation function in all hidden layers, while retaining sigmoid activation exclusively in the output layer to preserve the [0,1] range of the predicted values. ReLU is widely known for its non-saturating gradient behavior and computational efficiency, which lead to faster convergence and improved performance in deep networks. After introducing ReLU, significant improvements were observed in both convergence rate and overall generalization accuracy across the full spectrum of target values.
The training process relied on a custom implementation of the AdamW optimizer, which combines the adaptive step size of the Adam algorithm with decoupled L2 regularization (weight decay). This optimizer was selected to enhance generalization performance while maintaining fast convergence during training. The optimizer was configured with a learning rate of 0.001, a weight decay factor of 0.01, momentum coefficients β1 = 0.9 and β2 = 0.999, and an epsilon value of 1 × 10−8 to ensure numerical stability during updates.
The final network architecture was selected using an automated evolutionary search procedure that evaluated candidate configurations based on their RMSE performance over short training runs. Through this process, the selected architecture comprised five input neurons (for distance and coordinates), two hidden layers with 29 and 57 neurons, respectively, and a single output neuron. This structure can be seen in Figure 2. While the numerical structure 5-29-57-1 refers to the number of neurons in each layer, the visual representation includes additional layers such as the normalization input pre-processing and final activation step, which may visually appear as distinct layers. This model was subsequently trained for 20,000 epochs, which took around 2 h ensuring deep convergence and the ability to generalize across a diverse set of input patterns. This training process can be seen in Figure 3.
The performance of the model was found to be most sensitive to the number of neurons in the first hidden layer and the learning rate. These parameters significantly affected convergence stability and final accuracy during training. Dropout rate and batch size had minor effects in this particular problem domain due to the relatively small dataset size. As can be observed from the architecture, the final input node—representing the Haversine distance—appears to be the most active and, unsurprisingly, the most influential. This is reflected in the color coding: the closer a value is to 1 or −1, the more it shifts toward blue or red, respectively, indicating stronger activation at those extremes.
Although small- and medium-sized enterprises may lack in-house expertise in neural networks, it is emphasized that real-world deployment of the trained model is straightforward. Once trained, inference reduces to a few matrix multiplications with fixed weights and biases, operations that can be reproduced in common tools (e.g., a simple Excel/VBA macro) or any lightweight runtime.
As shown in Figure 4, both the training procedure and the inference process for retrieving distance estimates from the trained ANN are presented in pseudocode. The settings reflect the current configuration; however, the code can naturally be adapted to use additional or larger hidden layers, or alternative training schemes.

5. Case Studies of Route Planning with Different Distance Estimations

In this chapter, we investigate practical route planning strategies through three distinct case studies, each based on a different spatial scale. The first scenario involves a localized delivery problem within a district of Budapest; the second expands the scope to routes within a single county; and the third addresses national-level transportation across regions of Hungary. For each case, we define a set of delivery points and construct a transportation loop that must be optimized.
To assess the robustness and consistency of the proposed methodologies, all five routing methods under consideration are applied to each location set. To provide a benchmark for comparison, reference distances were derived from real-world geospatial and routing datasets, covering every possible pairwise route in the location sets. This allows for a direct comparison between model-based route suggestions and real-world optimal paths.
The central question is whether these computational methods—despite producing differing distance estimates—can still produce route plans that align structurally with those derived from real-world geographic data. This evaluation provides insight into each method’s reliability across different spatial contexts.
In the following table set, real-world distances from a map service are shown between eight cities for three distance categories: short, medium, and long. Within each group, the goal is to determine the optimal route that visits all cities. The route optimization was intentionally carried out using the simplest possible approach: the corresponding distance matrices were used as input data, and the optimal sequence was computed using the evolutionary method of Solver add-in in Microsoft Excel. This method proved successful in producing valid route arrangements.
To simplify interpretation and avoid manually reviewing all permutations for each method, the first location in each group was designated as the fixed starting point. As a result, in most cases, only one or two optimal solutions exist; two when the matrix is symmetric, since mirror directions yield identical distances.
In the distance matrices presented in Table 6, the values were retrieved directly from the Google Distance Matrix API. For simplicity, each location within the 8-city groups is represented by a numeric label from 1 to 8, rather than full geographic names. A separate summary figure later in the document will illustrate the actual city locations corresponding to each numbered location.
The final column of each matrix contains the optimal route and its total distance based on total travel distance, calculated using Solver. In the case of real-world data, where the matrices are not fully symmetric, reverse routes do not necessarily yield the same result and are therefore treated as direction-dependent.
In the following section, the distance matrices computed using the Haversine formula are presented for the same set of locations. These matrices serve as the basis for the four statistical models introduced earlier. The individual matrices derived from each model are not shown separately, as they can be easily calculated using the provided equations. Unlike the real-world distances retrieved from the map service, the Haversine-based matrices are symmetric by nature, since they are purely geometrical and do not account for route-specific factors such as road networks or one-way constraints.
As demonstrated in the set of Table 7 the Haversine-based approximation is functional; however, it often fails to reproduce the actual routing derived from real-world distance data. In cases involving short distances, the resulting route deviates significantly from the true one. For medium and long distances, some city pairs do align with the original optimal route, but the consistency remains limited. This limitation will be similar in the average-based approach, which relies solely on scaling the straight-line distances using a fixed factor, without accounting for spatial context or local road geometry.
In the final part of the matrix demonstration, the results obtained through neural network training are presented. These estimations cannot be generated from raw input data alone; instead, they must be produced by a trained artificial neural network. Unlike the previous statistical methods, where approximate results could be directly calculated, this approach requires the model to be fitted in advance using representative data. The outputs for the three route planning scenarios were generated by the trained network and are shown in Table 8. These values reflect the network’s internalized understanding of spatial relationships, rather than explicit distance calculations.
As previously observed in the statistical analysis, the machine learning–based distance approximation yields promising—though not flawless—results. A comparison between Table 6 and Table 8 reveals that in several cases, not only are entire city pairs preserved, but full route segments remain unchanged, with only minor substitutions, such as swapping one or two cities. This phenomenon is particularly evident in the two corresponding Table C route plans, where the only noticeable difference is that the ML-based solution produces the reversed traversal of the original route.
An important observation in Table 8 is that, unlike the statistical methods, the machine learning model does not produce zero distance between identical locations. Instead, it consistently predicts a small nonzero value, even when the origin and destination are the same. This behavior can be attributed to two main factors: first, the nature of neural networks, which always produce a numerical output rather than a true null; and second, the absence of identical-location examples in the training data, which prevented the model from learning to associate such cases with zero distance. Importantly, this limitation is not unique to the ANN: apart from applying a fixed scaling factor to Haversine distances, none of the tested approaches, including the statistical models, would return a true zero for identical locations. Even if identical pairs had been included, there is no guarantee that the model—or other methods—would have achieved an exact zero, as perfect accuracy was never the goal. As a result, the model generalizes these inputs and returns an estimated value rather than a hard-coded zero.
In the subsequent table, the different estimation methods are evaluated in terms of their route structures and total distances, segmented across short-, medium-, and long-distance scenarios.
In Table 9, the optimal routes generated by each of the methods discussed so far are presented. An interesting phenomenon emerges: all approaches based purely on statistical estimation—namely the Haversine formula, average-scaling, linear regression, and both polynomial models—produced the exact same route as the optimal solution. While these solutions are not entirely inaccurate, as previously discussed, they do not align closely with the real-world optimal paths derived from actual map data.
The fact that all five statistical methods converged on the same route, despite using different formulas to estimate distances, suggests a likely explanation: the relative ordering of pairwise distances remains mostly consistent across these methods. Although the absolute values differ by model, the rank or comparative magnitude of each distance tends to be preserved. As a result, even though the scales vary, the optimization process identifies the same path because the relative structure of the distance matrix remains unchanged.
In addition to the earlier observations, it can also be seen here that the trained ML-ANN model provides a significantly closer approximation to the map-based ground truth. Both in terms of route structure and individual distances, the predictions generated by the neural network alien more closely with the real-world values than those produced by the purely statistical models. In contrast, the latter often overestimate total distances, particularly for longer routes, leading to greater deviations from realistic expectations. This reinforces the practical advantage of using trained machine learning models in route planning when map queries are unavailable or restricted.
For visualization purposes, the medium-distance scenario has been illustrated using a scatter plot, placed above a segment of the Hungarian map to provide geographical context on Figure 5. This allows for a clearer understanding of how the different models would construct a route across actual locations. Since all four Haversine-based and statistical models (including average, linear, and polynomial estimations) resulted in the exact same routing solution, they are represented collectively as a single unified method (haversine method) in this figure. This visual comparison highlights both the structural similarities and the differences between model-generated and map-based routes.
What can also be observed in Table 9. is that when we project the resulting path back onto the precise cartographic data, the differences become clearly visible. This is shown in the last column of Table 9: we can see that, regardless of whether the estimates are good or poor, in the case of simple statistical models the projected and aggregated data result in roughly 10–30% redundant travel distance (116.6/90.5; 352.1/309.9; and 886.9/757.2). In contrast, with the machine learning–based models the increase in distance remains below 10% (97.5/90.5; 324.6/309.9; and 759.7/757.2). Moreover, in the full-country task we obtained an alternative route with ML that was only about 2 km longer than the ideal one.
While the primary focus of the validation was on distance estimation accuracy, the study also incorporated a practical evaluation within a real route optimization system. As detailed in the case study section, the estimated distance matrices—particularly those generated by the ANN model—were applied in an operational routing scenario. The resulting routes were compared with those generated using map-based distances, demonstrating that the ANN-based approach produced route structures more closely aligned with real-world travel patterns. This finding provides indirect evidence of the method’s compatibility with routing systems. Nevertheless, it is acknowledged that a more extensive quantitative assessment of potential time savings, operational efficiency gains, or computational advantages would further strengthen the validation. Such analyses represent a valuable direction for future research.

6. Discussion and Conclusions

The findings of this study confirm that reliable distance approximations can be achieved without full reliance on costly geospatial services (Hypothesis 1). Through the comparison of multiple statistical estimators and a trained artificial neural network, it has been demonstrated that route planning tasks—particularly at medium and long distances—can be reasonably approximated using limited data and lightweight computational models.
Among the statistical methods, all models that rely solely on variations of the Haversine calculation yielded similar results, both in terms of route structure and estimated distances. This consistency stems from the preserved relative order of inter-point distances across models, despite their differing mathematical formulations. However, while computationally efficient, these models consistently overestimated actual road distances, particularly at longer ranges, limiting their effectiveness in real-world scenarios. In addition, they inherently assume a static road network; in practice, network changes can occur and should be accounted for. In principle, such models could be adapted for real-time updates, where “real-time” is defined by the computational time required to recalculate affected distances after changes, while balancing responsiveness with efficiency.
In contrast, the ANN-based approach—although imperfect—proved more capable of approximating both the actual distances and the resulting optimal routes (Hypothesis 2). Notably, this method was able to capture segment-level patterns and route logic that purely statistical models could not. Still, the model demonstrated some instability at short distances and lacked the capacity to assign zero distance to identical locations, highlighting a key limitation related to training data representation. These higher errors in the under-10 km category reflect the inherent difficulty of short-range estimation: small route deviations in urban contexts represent proportionally larger changes than equivalent deviations over long distances. While the point-pair generation process was biased toward selecting closer locations to mitigate this, the amount of short-range data was still insufficient to fully resolve the issue. Moreover, short-range accuracy is influenced not only by physical distance, but also by factors such as traffic, travel time, and city layout—variables deliberately excluded to maintain the method’s simplicity and general applicability.
Importantly, it is expected that further improvements can be achieved through the use of larger and more diverse datasets, longer and more extensive training phases, and the inclusion of additional input features. Parameters such as estimated travel time, road classification (e.g., highway vs. local), elevation changes, traffic intensity, or population density of surrounding areas could enrich the input space and enhance the model’s ability to differentiate between similar geometric distances that lead to different real-world travel conditions. Many of these attributes are publicly available in open datasets or can be queried in batch from limited geospatial sources.
These results suggest that neural network–based models may serve as a viable middle ground between simplistic statistical estimators and high-cost routing APIs. Their predictive power, when properly trained, enables scalable, near-realistic routing without continuous geospatial querying, making them especially valuable for small- and medium-sized enterprises operating under resource constraints.
It is acknowledged that concerns may arise regarding the complexity of machine-learning-based solutions for SMEs. However, after training, the model can be executed with negligible computational overhead using standard linear-algebra operations; moreover, the training process itself is increasingly accessible due to widely available frameworks and cloud notebooks, allowing for models to be retrained or fine-tuned without specialized infrastructure (Hypothesis 3).
SMEs can incur losses when relying on estimates for route planning: with simple statistical models, the redundant travel distance is around 10–30%; with machine learning–based methods, it remains below 10%; and in full-country transport routes, it could be basically zero (Hypothesis 4).
Future work will focus on enhancing model generalization by expanding the training dataset with synthetic and real-world examples, particularly including self-reference pairs to correct the zero-distance estimation issue. Additionally, hybrid approaches combining fast statistical approximations for pre-filtering and ML-based refinement for critical segments could be explored. Estimating travel times for different vehicle types, such as cars and trucks, will also be investigated, as this adds an important temporal dimension to routing and logistics applications, enabling more realistic and context-aware planning. Further benchmarking against state-of-the-art route optimization frameworks will also be prioritized to situate this method within the broader research landscape and validate its practical applicability.

Funding

Supported by the University Research Scholarship Program of the Ministry for Culture and Innovation from the Source of the National Research, Development and Innovation Fund. Funding agreement number: TNI/1648-56/2024.
Logistics 09 00124 i001

Data Availability Statement

The datasets and programing files presented in this study are available on request from the author for reasonable request. The Hungarian addresses and geospatial data used in this study are publicly available in the following GitHub repository: https://github.com/KAMI911/osm-import-request/tree/master/hu_posta (accessed on 12 July 2025). The Danish data are available at https://dataforsyningen.dk/ (accessed on 11 August 2025).

Conflicts of Interest

The author declares no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
SMESmall- and Medium-sized Enterprise
GPSGlobal Positioning System
ANNArtificial Neural Network
MLMachine Learning
APIApplication Programming Interface
Avg.Average
SDStandard Deviation
d./dis.distance
RMSERoute Mean Square Error

References

  1. Stanik, M.; Kiedrowicz, J.; Napiórkowski, M. Multi-criteria comparative analysis of GIS class systems. GIS Odyssey J. 2023, 3, 97–122. [Google Scholar] [CrossRef]
  2. Bányai, T. Optimization of Hub-Based Milkrun Supply. Logistics 2024, 8, 86. [Google Scholar] [CrossRef]
  3. Roy, S.; Dadashev, G.; Yfantis, L.; Nahmias-Biran, B.-H.; Hasan, S. Autonomous On-Demand Shuttles for First Mile–Last Mile Connectivity: Design, Optimization, and Impact Assessment. Transp. Res. Rec. J. Transp. Res. Board. 2025, 2679, 819–840. [Google Scholar] [CrossRef]
  4. Gbadamosi, O.A.; Aremu, D.R. Modification of Dijkstra’s algorithm for best alternative routes. In Proceedings of the International Congress on Information and Communication Technology, London, UK, 20–23 February 2023; Springer Nature: Singapore, 2023; Volume 695, pp. 245–264. [Google Scholar] [CrossRef]
  5. Johnson, R. Optimal Pathfinding with A-Star Algorithms: Definitive Reference for Developers and Engineers; HiTeX Press: Cambridge, MA, USA, 2025. [Google Scholar]
  6. Tian, M.; Yu, J. Progressive Rapidly-exploring Random Tree for Global Path Planning of Robots. In Proceedings of the 2023 9th International Conference on Control, Automation and Robotics (ICCAR), Beijing, China, 21–23 April 2023; pp. 388–393. [Google Scholar] [CrossRef]
  7. Ikasari, D.; Widiastuti; Andika, R. Determine the Shortest Path Problem Using Haversine Algorithm, A Case Study of SMA Zoning in Depok. In Proceedings of the 2021 3rd International Congress on Human-Computer Interaction, Optimization and Robotic Applications (HORA), Ankara, Turkey, 11–13 June 2021; pp. 1–6. [Google Scholar] [CrossRef]
  8. Baskar, A.; Xavior, M.A. A facility location model for marine applications. Mater. Today Proc. 2021, 46, 8143–8147. [Google Scholar] [CrossRef]
  9. Kirana, K.C.; Ramadhan, H.; Wibawanto, S.; Herwanto, H.W. A Novel Geometry-Based Indoor Positioning for Attendance System. In Proceedings of the 2021 7th International Conference on Electrical, Electronics and Information Engineering (ICEEIE), Malang, Indonesia, 2 October 2021; pp. 384–389. [Google Scholar] [CrossRef]
  10. Permana, I.S.; Arlovin, T.; Hidayat, T.; Sarief, I.; Solihin, H.H.; Mulyadi, C.D. Optimizing Art Studio Connectivity: A Haversine and Greedy Algorithm Approach for Navigation in Cirebon Indonesia. In Proceedings of the 2023 17th International Conference on Telecommunication Systems, Services, and Applications (TSSA), Lombok, Indonesia, 12–13 October 2023; pp. 1–5. [Google Scholar] [CrossRef]
  11. Bloemheuvel, S.; Hoogen, J.v.D.; Atzmueller, M. Graph construction on complex spatiotemporal data for enhancing graph neural network-based approaches. Int. J. Data Sci. Anal. 2023, 18, 157–174. [Google Scholar] [CrossRef]
  12. Senthilkumar, S.R.; Jabak, V.H.; Vidyashankar, G.; Divij, D.; Saravanan, S. Optimized Bus Route Finder for Educational Institutes using Haversine formula. In Proceedings of the 2024 15th International Conference on Computing Communication and Networking Technologies (ICCCNT), Kamand, India, 24–28 June 2024; pp. 1–4. [Google Scholar] [CrossRef]
  13. Boscoe, F.P.; Henry, K.A.; Zdeb, M.S. A Nationwide Comparison of Driving Distance Versus Straight-Line Distance to Hospitals. Prof. Geogr. 2012, 64, 188–196. [Google Scholar] [CrossRef] [PubMed]
  14. Ballou, R.H.; Rahardja, H.; Sakai, N. Selected country circuity factors for road travel distance estimation. Transp. Res. Part A Policy Pract. 2002, 36, 843–848. [Google Scholar] [CrossRef]
  15. Giacomin, D.J.; Levinson, D.M. Road network circuity in metropolitan areas. Environ. Plan. B Plan. Des. 2015, 42, 1040–1053. [Google Scholar] [CrossRef]
  16. Kweon, H. Comparisons of Estimated Circuity Factor of Forest Roads with Different Vertical Heights in Mountainous Areas, Republic of Korea. Forest 2019, 10, 1147. [Google Scholar] [CrossRef]
  17. Stigell, E.; Schantz, P. Methods for determining route distances in active commuting—Their validity and reproducibility. J. Transp. Geogr. 2011, 19, 563–574. [Google Scholar] [CrossRef]
  18. Helmi, E.-S.O.; Emam, O.; Abdel-Salam, M. Deep Learning Framework for Locating Physical Internet Hubs using Latitude and Longitude Classification. Int. J. Adv. Comput. Sci. Appl. 2022, 13. [Google Scholar] [CrossRef]
  19. Lagos, F.; Moreno, S.; Yushimito, W.F.; Brstilo, T. Urban Origin–Destination Travel Time Estimation Using K-Nearest-Neighbor-Based Methods. Mathematics 2024, 12, 1255. [Google Scholar] [CrossRef]
  20. Si, R.; Lin, Y.; Yang, D.; Guo, Q. Interpretable Machine Learning Insights into the Factors Influencing Residents’ Travel Distance Distribution. ISPRS Int. J. Geo-Inf. 2025, 14, 39. [Google Scholar] [CrossRef]
  21. Jeonghyeon, Y.; Seungku, K. A Deep Self-Learning Scheme for Robot Travel Distance Estimation. SSRN 2024. [Google Scholar] [CrossRef]
  22. GitHub. Available online: https://github.com/KAMI911/osm-import-request/tree/master/hu_posta (accessed on 12 July 2025).
Figure 1. Correlation between Haversine estimates and map-based distances.
Figure 1. Correlation between Haversine estimates and map-based distances.
Logistics 09 00124 g001
Figure 2. ANN architecture [5-29-57-1] for distance approximation.
Figure 2. ANN architecture [5-29-57-1] for distance approximation.
Logistics 09 00124 g002
Figure 3. Training process of a [5-29-57-1] ANN for distance approximation.
Figure 3. Training process of a [5-29-57-1] ANN for distance approximation.
Logistics 09 00124 g003
Figure 4. The Pseudo code of the training process and inference procedure of the ANN for distance estimation.
Figure 4. The Pseudo code of the training process and inference procedure of the ANN for distance estimation.
Logistics 09 00124 g004
Figure 5. Comparison of Model-Generated and Map-Based Routes in the Medium-Distance Scenario.
Figure 5. Comparison of Model-Generated and Map-Based Routes in the Medium-Distance Scenario.
Logistics 09 00124 g005
Table 1. Summary of circuity factor estimates by region and/or trip type from prior research.
Table 1. Summary of circuity factor estimates by region and/or trip type from prior research.
Author(s)Estimated SubjectEstimated Circuity Factor
Boscoe et al. [13]European counties1.1–1.417
Ballou et al. [14]United States 1.22–1.25
Ballou et al. [14]Western Europe 1.25
Ballou et al. [14]Japan1.09
Ballou et al. [14]Brazil1.33
Giacomin et al. [15]Typical short trips (~1 km)1.5
Giacomin et al. [15]Medium trips (~10 km)1.27
Giacomin et al. [15]Long trips (~50 km)1.2
Kweon [16]South Korea mid-slope roads2.09
Kweon [16]South Korea ridge roads1.36
Kweon [16]South Korea valley roads1.09
Stigell et al. [17]World average self estimation1.14
Stigell et al. [17]World average GPS estimation1.05
Stigell et al. [17]World average GIS estimation1.12–1.21
This studyHungary1.3613
Table 2. (a) Sample distance records with addresses. (b) Sample distance records with coordinates and haversine estimates.
Table 2. (a) Sample distance records with addresses. (b) Sample distance records with coordinates and haversine estimates.
(a)
OrigDestLocation OriginLocation Destination
22722326Balmazújvárosi út 7, 4027 Debrecen, H.Derék utca 31, 4031 Debrecen, Hungary
120483Tétényi út 2, 1115 Budapest, HungaryEtele tér aluljáró, 1871 Budapest, Hun.
525140Váci út 201, 1138 Budapest, HungaryFő út 190, 2120 Dunakeszi, Hungary
1535131Fő út 104–106, 2220 Vecsés, HungarySibrik Miklós út 30/B, 1103 Budapest
31412627Fő út hrsz 7967, 2120 Dunakeszi, HungaryDunaföldvári út 2, 6000 Kecskemét, H.
16303307Gyári út 3237, 2310 Szigetszentmiklós, H.Vak Bottyán 54., 8600 Siófok, Hungary
2421702Földi János utca 55, 4242 Hajdúhadház, H.Rákóczi út 20/A, 1871 Budapest, Hun.
46672167Kodály Zoltán tér 7, 6000 Kecskemét, H.Bajcsy-Zsilinszky út., 3530 Miskolc, H.
(b)
OriginDestinationLatitude OriginLongitude OriginLatitude Dest.Longitude Dest.Map Distance (km)Havers. Est. (km)
2272232647.54296021.59608047.52492021.5977602.502.01
12048347.47222019.03411047.46417319.0215812.501.30
52514047.55931019.07727047.65599119.13006612.5011.46
153513147.40975019.27572047.46930019.15471012.6011.25
3141262747.64342019.12981046.88753019.636490113.0092.34
1630330747.33748019.02873046.90161018.048540113.0088.60
242170247.69054021.67232047.40688319.006548255.00202.53
4667216746.91493019.69884048.10302020.792230255.00155.55
Table 3. Sample distances with different methods.
Table 3. Sample distances with different methods.
OriginDest.Real Dis.Havers. Dis.Avg. Dis.Lin. Dis.Poli2. Dis.Poli3. Dis.ML Dis.
227223262.502.012.7410.18−0.5610.914.08
1204832.501.301.779.31−1.6310.245.19
52514012.5011.4615.5921.6613.5920.1715.71
153513112.6011.2515.3221.4213.2919.9714.53
31412627113.0092.34125.70120.02126.64117.40116.98
16303307113.0088.60120.61115.47121.73112.40112.88
2421702255.00202.53275.71254.01257.50267.75259.27
46672167255.00155.55211.75196.88204.97204.55200.12
Table 4. Average and SD. of Hungarian distance estimations by method and distance range.
Table 4. Average and SD. of Hungarian distance estimations by method and distance range.
Avg. DistanceLin. DistancePoli2. Dis.Poli3. Dis.ML Distance
Avg.SD.Avg.SD.Avg.SD.Avg.SD.Avg.SD.
Full set1.060.641.170.930.990.581.140.910.980.43
Below 10 km1.222.232.753.280.712.072.803.231.121.20
10…40 km1.071.211.781.870.841.131.721.861.010.66
Above 40 km1.060.391.020.351.020.321.010.310.980.36
Table 5. Average and SD. of Danish distance estimations by method and distance range.
Table 5. Average and SD. of Danish distance estimations by method and distance range.
Avg. DistanceLin. DistancePoli2. Dis.Poli3. Dis.ML Distance
Avg.SD.Avg.SD.Avg.SD.Avg.SD.Avg.SD.
Full set1.040.351.080.350.990.341.050.360.920.52
Below 10 km0.990.171.590.440.760.311.540.510.470.87
10…40 km1.060.821.320.740.920.781.350.791.270.54
Above 40 km1.020.271.020.251.030.271.020.271.120.23
Table 6. (a) Real-world distance matrices for short inner-city locations and optimal routes. (b) Real-world distance matrices for medium intra city locations and optimal route. (c) Real-world distance matrices for whole country locations and optimal route.
Table 6. (a) Real-world distance matrices for short inner-city locations and optimal routes. (b) Real-world distance matrices for medium intra city locations and optimal route. (c) Real-world distance matrices for whole country locations and optimal route.
(a)
Real Dist. (km)12345678Best Route (90.5 km)
10.005.4014.9027.5015.706.106.9010.801
24.400.0013.4033.4021.6012.3012.9016.207
313.1011.700.0044.5036.2015.2015.1020.905
427.5032.8044.500.0013.3024.1021.4022.004
515.8021.1035.9013.200.0012.409.7011.108
65.108.8015.9022.7010.900.002.709.006
77.0012.8017.2021.109.302.200.006.103
812.0015.4023.2022.5011.607.105.700.002
(b)
Real Dist. (km)12345678Best Route (309.9 km)
10.0026.1083.0052.6064.1077.10109.00135.001
226.600.0056.6062.8054.5050.7082.80109.004
385.8058.900.007.004.0032.5032.70115.005
473.6065.506.800.009.3039.1039.30122.003
565.0056.104.009.100.0029.7037.00112.007
679.2052.2031.1037.4029.000.0034.5074.308
7111.0083.7032.6039.4036.6034.600.0056.706
8137.00110.00116.00122.00114.0075.8056.900.002
(c)
Real Dist. (km)12345678Best Route (757.2 km)
10.0016.5010.2082.30180.00201.00189.00117.001
215.900.0015.6080.20192.00214.00194.00122.003
310.1015.800.0086.50178.00199.00181.00109.008
480.5081.4086.200.00136.00158.00258.00186.007
5180.00193.00178.00136.000.0028.70228.00278.005
6202.00214.00199.00158.0028.900.00371.00299.006
7191.00196.00184.00262.00228.00375.000.00129.004
8116.00121.00109.00187.00278.00300.00126.000.002
Table 7. (a) Haversine distance matrices for medium intra city locations and optimal route. (b) Haversine distance matrices for short inner-city locations and optimal route. (c) Haversine distance matrices for whole country locations and optimal routes.
Table 7. (a) Haversine distance matrices for medium intra city locations and optimal route. (b) Haversine distance matrices for short inner-city locations and optimal route. (c) Haversine distance matrices for whole country locations and optimal routes.
(a)
Real Dist. (km)12345678Best Route (46.8 km)
10.008.687.956.7518.1511.4212.6611.871
28.680.008.852.629.523.495.383.394
37.958.850.009.2516.9012.3114.2311.906
46.752.629.250.0011.544.676.005.237
518.159.5216.9011.540.007.066.916.325
611.423.4912.314.677.060.001.991.288
712.665.3814.236.006.911.990.002.962
811.873.3911.905.236.321.282.960.003
(b)
Real Dist. (km)12345678Best Route (287.2 km)
10.0037.6338.1834.5733.4035.0540.5499.131
237.630.0070.2565.3265.9165.3577.23107.407
338.1870.250.005.404.795.8718.1276.193
434.5765.325.400.004.111.0121.9274.635
533.4065.914.794.110.005.1118.0778.584
635.0565.355.871.015.110.0022.8373.636
740.5477.2318.1221.9218.0722.830.0093.408
899.13107.4076.1974.6378.5873.6393.400.002
(c)
Real Dist. (km)12345678Best Route (641.3 km)
10.0037.6338.1834.5733.4035.0540.5499.131
237.630.0070.2565.3265.9165.3577.23107.403
338.1870.250.005.404.795.8718.1276.192
434.5765.325.400.004.111.0121.9274.634
533.4065.914.794.110.005.1118.0778.585
635.0565.355.871.015.110.0022.8373.636
740.5477.2318.1221.9218.0722.830.0093.407
899.13107.4076.1974.6378.5873.6393.400.008
Table 8. (a) ML distance matrices for short inner-city locations and optimal route. (b) ML distance matrices for medium intra city locations and optimal route. (c) ML distance matrices for whole country locations and optimal route.
Table 8. (a) ML distance matrices for short inner-city locations and optimal route. (b) ML distance matrices for medium intra city locations and optimal route. (c) ML distance matrices for whole country locations and optimal route.
(a)
Real Dist. (km)12345678Best Route (105.1 km)
11.088.3317.6825.6617.417.0911.9711.781
28.882.7713.7737.7821.4516.6116.2916.666
320.1314.832.4733.3334.1417.2920.3317.014
428.8140.0833.700.7618.3221.2123.7526.535
517.1623.5534.5116.911.2518.3811.6713.797
626.4018.1117.1319.1318.272.704.7411.398
711.5916.7420.7423.0211.604.840.867.733
811.2618.5617.5126.6613.3410.837.113.342
(b)
Real Dist. (km)12345678Best Route (304.1 km)
10.0026.1083.0052.6064.1077.10109.00135.001
226.600.0056.6062.8054.5050.7082.80109.002
385.8058.900.007.004.0032.5032.70115.006
473.6065.506.800.009.3039.1039.30122.008
565.0056.104.009.100.0029.7037.00112.007
679.2052.2031.1037.4029.000.0034.5074.305
7111.0083.7032.6039.4036.6034.600.0056.703
8137.00110.00116.00122.00114.0075.8056.900.004
(c)
Real Dist. (km)12345678Best Route (766.3 km)
12.4420.2422.0787.98142.56236.18218.48130.341
219.673.4017.8473.78184.13245.03184.8896.382
324.7219.611.7295.15153.26152.04200.1987.644
484.3774.9693.912.69155.45185.81223.69229.346
5156.82169.21144.68164.623.6636.09195.85278.005
6165.15263.41167.54205.1339.592.52288.27372.267
7235.09197.64185.97204.45223.47291.154.60139.068
8126.9598.9887.29226.82299.13373.74144.491.873
Table 9. Summary of routes and distances of multiple estimations for different tasks.
Table 9. Summary of routes and distances of multiple estimations for different tasks.
Task SizeMethodRouteDistance by Method (km)Distance on Map (km)
Inner city taskMap data1-7-5-4-8-6-3-2-190.590.5
Haversine est.1-4-6-7-5-8-2-3-146.8116.6
Average est.1-4-6-7-5-8-2-3-163.71116.6
Linear method1-4-6-7-5-8-2-3-1118.8116.6
Polinimial 2 est.1-4-6-7-5-8-2-3-141.7116.6
Polinimial 3 est.1-4-6-7-5-8-2-3-1117.0116.6
Neural training1-6-4-5-7-8-3-2-1105.197.5
Inter county taskMap data1-4-5-3-7-8-6-2-1309.9309.9
Haversine est.1-7-3-5-4-6-8-2-1287.2352.1
Average est.1-7-3-5-4-6-8-2-1390.9352.1
Linear method1-7-3-5-4-6-8-2-1383.1352.1
Polinimial 2 est.1-7-3-5-4-6-8-2-1411.1352.1
Polinimial 3 est.1-7-3-5-4-6-8-2-1394.5352.1
Neural training1-4-6-8-7-5-3-2-1304.1324.6
Full country taskMap data1-3-8-7-5-6-4-2-1757.2757.2
Haversine est.1-3-2-4-5-6-7-8-1641.3886.9
Average est.1-3-2-4-5-6-7-8-1873.1886.9
Linear method1-3-2-4-5-6-7-8-1841.7886.9
Polinimial 2 est.1-3-2-4-5-6-7-8-1842.8886.9
Polinimial 3 est.1-3-2-4-5-6-7-8-1850.1886.9
Neural training1-2-4-6-5-7-8-3-1766.3759.7
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Veres, P. ML and Statistics-Driven Route Planning: Effective Solutions Without Maps. Logistics 2025, 9, 124. https://doi.org/10.3390/logistics9030124

AMA Style

Veres P. ML and Statistics-Driven Route Planning: Effective Solutions Without Maps. Logistics. 2025; 9(3):124. https://doi.org/10.3390/logistics9030124

Chicago/Turabian Style

Veres, Péter. 2025. "ML and Statistics-Driven Route Planning: Effective Solutions Without Maps" Logistics 9, no. 3: 124. https://doi.org/10.3390/logistics9030124

APA Style

Veres, P. (2025). ML and Statistics-Driven Route Planning: Effective Solutions Without Maps. Logistics, 9(3), 124. https://doi.org/10.3390/logistics9030124

Article Metrics

Back to TopTop