Abstract
Cities have developed over time alongside advancements in civilization, focusing on efficient travel and reducing costs. Many studies have examined the distinctive features of urban road networks, such as their length, efficiency, connection to population density, and other properties. However, the relationship between car routes and population in city structures remains unclear. In this study, we used the center of mass for each city tract, defined by the US Census, as the origins and destinations for our itineraries. We calculated travel time, and both Euclidean and travel distances for sixty major cities. We discovered that the total sum of all routes follows an urban law. The distribution of these car journeys is fitted by Weibull functions, suggesting that the urban center plays a crucial role in optimizing routes across multiple cities. We also established a classification for cities and developed a simple point pattern model for the population, which aligns with the well-known decreasing exponential density expression. Our findings show that the interplay between population and path optimization influences city structure through its center. This study offers a new perspective on the fundamental principles that shape urban design.
Subject terms: Complex networks, Nonlinear phenomena, Energy and behaviour
Introduction
Humans have historically organized into social structures, initially forming settlements and subsequently developing cities. Individuals residing in such areas have consistently faced a balance between the advantages gained from social interactions and the expenses associated with transportation. Such balance is evident in various theoretical approximations such as the amorphous settlement model1, the central market theory2, the core-periphery framework3 and the Alonso’s model for land rents4. The latter model points out that a decrease in transport costs leads to an expansion in the city area, explaining why it is not until the advent of the combustion engine that cities take on their current shape5. In some cases, as populations increasingly migrated to cities, further expansion became inevitable, leading to the development of multiple urban centers6. Therefore, in a polycentric city, workers commute to a discrete set of identifiable employment centers located throughout the town7. Commuting occurs through the urban road network, which has been characterized from different perspectives. If one relates the total road length
, to the population
, for several cities, one finds an exponential expression
, which defines an urban law1,8. The aforementioned expressions link population size to a range of urban outcomes, including infrastructure8, innovation9, firearm violence10, and waste generation11. The sublinear regime observed in urban road length,
, is a consequence of the network’s fractal nature, given that people of the city must be connected. Thus, the network must occupy space by filling in the area8,12, yet linear length is an inadequate indicator of network structural quality. One of the most commonly used efficiency measures to provide such information is the detour index13–16. Given an origin and a destination, it is the ratio between the network distance and the Euclidean length. The index exhibits a correlation with a distance-decay function within metropolitan regions, implying an inverse relationship between trip length and index value15,16. Another coefficient that estimates the network efficiency is the Road Infrastructure Accessibility (RIA), which is negatively correlated with the average daily extra travel time17. Measures of these values usually differ across urban areas, although contributions from spatial network theory indicate underlying similarities18–21. Roads and intersections are replaced by edges and nodes, respectively, in the schematic representation of the street network. The degree distribution of intersections is typically peaked, but the most interesting information lies in the distribution of betweenness centrality, a measure based on the number of shortest paths that pass through a node19,21. The graph-based approximation simplifies the measurement of the network structure, allowing the application of metrics typical of complex networks, such as Shannon entropy22. This concept evaluates the relative importance of roads within a network23 and compares the network design to a grid by analyzing street orientations24. Orthogonal street grids have been shown to enhance interconnectivity and density, which researchers identify as important factors in reducing vehicular travel and emissions while improving road safety and promoting physical activity. Current investigations point out that U.S. cities are revisiting this design to leverage its benefits25.
Urban road networks display consistent characteristics irrespective of their layout, location or geographical attributes, suggesting that these networks are shaped by mechanisms linked to population dynamics. Recent models assumed the coevolution of population and road networks26–29, thus establishing a central zone and a population density profile which decreases exponentially with distance26. Other factors, such as the accessibility and housing price27, the features of the constructed network28, and the attraction of a central business district29 have also been considered. The previous studies have improved our understanding of how population distribution relates to road networks, but they often fail to explain how these networks are used in daily life. Recognizing this gap in our knowledge, the study of mobility patterns has emerged as another significant and rapidly expanding field of inquiry, experiencing substantial growth over the past two decades. For example, one approach to their analysis is conducted using cell phone location data30–33, which are aggregated into an origin–destination (OD) matrix M30,34–36. Such studies divide the area into cells of equal size identified by an index. Since these works generally focus on the flow of people, the element
represents the population moving from cell i to cell j. The approach provides insights into how a city is structured for its inhabitants and helps determine whether it is monocentric or polycentric30,31. These matrices can also express travel times or distances between various locations in the city35,36. In contrast to the concept of cells, there is the concept of containers37, which is not tied to geography. Containers are associated with various scales of mobility, such as buildings, neighborhoods, and more. The application of this framework has yielded evidence that mobility patterns adhere to a power-law relationship, characterized by an exponential decay as a function of distance.
Notwithstanding the extensive research conducted, several inquiries persist: To what extent does the optimization of travel routes correlate with the previously delineated factors? Do a majority of urban centers exhibit a congruent distribution of optimal travel routes? Is this distributional pattern associated with the population density profile? Furthermore, does the central business district exert a discernible influence on the minimization of transport costs?
We propose a straightforward method linking the city’s population profile to travel route optimization, detailed in the Methods section. For each city under investigation, the centroids of census tracts38, defined as areal units containing approximately 4000 residents, were estimated. Subsequently, the optimal routes connecting all centroid pairs were computed, generating three OD-type matrices corresponding to travel time, and to Euclidean and travel distances. We then examined the potential existence of universal urban scaling laws governing the summation of these matrices, as well as the presence of a generalized distribution characterizing optimal route patterns. Building upon this analysis, we applied a basic population model to further investigate this distribution, revealing that the presence of a population center significantly contributes to the reduction of transport costs.
Results
This study undertakes an examination of 60 North American urban centers, each possessing a population exceeding 100,000 inhabitants. The selection of these cities encompassed 13 states, with a notable concentration in the Eastern region (e.g., Florida, Georgia, New York) due to their comparatively elevated population densities. To ensure adequate variability within the sample and to provide a representation of broader United States urban patterns, cities from Utah and Texas were also incorporated.
We divide each city into its census tracts and estimate the position of their centers of mass. For a pair of centroids, i and j, we calculate the Euclidean length between them,
, and its travel distance for the fastest route,
, as it is illustrated in Fig. 1. We also estimate the time to move between the two selected points
Replicating this process by taking all centroids as origins and destinations, we calculate three OD matrices for each city: E and D accounting for Euclidean and travel distances, and T for the travel time.
Fig. 1.
Euclidean and travel distances between two centroids. The city is divided by its census tracts, and the center of mass of each region is estimated. Taking as reference centroids i and j, the Euclidean distance is the length of the straight line that joins them. The travel distance is the length over the urban road network. These distances correspond to the matrix elements
and
, respectively. Orthoimage of Washington D.C. courtesy of Google Earth.
Urban laws
Having established the preceding matrices, the subsequent phase of this analysis involves a systematic inquiry to discern potential urban laws. For our case study, we have plotted the total of Euclidean distances between centroids,
, versus the city population. The results are represented in Fig. 2A. The correlation is high,
, and its slope, the scaling exponent of the urban law, is
. Therefore, the total Euclidean distance scales superlinearly with the population. This scaling can be explained by basic properties of complete graphs. As the
centroids are linked to each other, the number of edges is given by
.
Fig. 2.
Urban laws for routes in 60 North American cities. Relation between population (on the x-axis) and: (A) the total length of the Euclidean distances connecting centroids, (B) the total length of travel distances, and (C) the total travel time.
Given that the analysis operates with paths, each edge within the network is traversed in two directions. Consequently, the multiplicative factor of 2 is deemed inconsequential and thus disregarded. Therefore, the dominant term in the relevant formulation becomes
and the total route length is proportional to it. On the other hand, these nodes are associated with the centers of mass of non-overlapping areas, as depicted in Fig. 1. This imposes a minimum distance between nodes which could increase the supercritical exponent to values even greater than 2.
The procedure applied to the Euclidean lengths is repeated for the travel distances and their corresponding times, i.e. matrices D and T. This yields the urban laws depicted in Fig. 2B,C. Both figures show a high correlation coefficient,
, and similar values for their slopes,
for distances, and
for their times. The value of the temporal slope is slightly lower than that of the spatial one. This may be due to our optimization method, which is focused on minimizing journey times rather than travel distances. A notable feature is the concurrence of supercritical exponents for the Euclidean and travel distances,
, which value is associated with the number of centroids and their geographical layout. This remains consistent irrespective of the distance considered. The link between them will be further explored via the detour index.
Detour index
To investigate the relationship between the total travel distance and the corresponding Euclidean distance in a generalized manner, we posited a correlation between these two metrics of the type
for the studied cities. Here,
is the proportionality factor, σ is the related exponent and summation runs over all the city centroids labelled as i and j. The equation, plotted in Fig. 3A, exhibits a slope value closely approximating one,
, and a y-intercept of
. Note that the illustration has logarithmic axes, thus,
implies a linear relation between the Euclidean and travel distances. The proportionality constant between both distances is estimated from to the y-intercept value from Fig. 3A,B, as
. As previously defined, the detour index for a given route is the ratio of travel length to Euclidean distance. We generalize this concept representing the total of travel distances versus the total of Euclidean ones for each city. Hence, as all the set of cities contributes to the calculation of
, we define the mean detour index as
. The meaning is straightforward: when travelling between two random centroids in any city, the distance over the urban road network is on average 41% greater than the distance travelled in an ideal straight line.
Fig. 3.
Mean detour index estimations. (A) Total length of the travel versus its corresponding Euclidean distance. Average detour index is calculated by mean its slope. (B) Density histogram of the detour index calculated as a mean for every city and fitted by a Gumbel function. The mean detour index is averaged from the previous means.
An alternative calculation of the
can be made considering all the detour indices for the travels between the centroids of a city. For this aim, all centroids i and j were taken, and the detour index was estimated for every possible travel between them. We obtained the mean detour index for a metropolitan area k,
, averaging these measures. This process was repeated for all the set of cities. Further calculation details can be found in the Methods section. Hence, calculating the mean and the standard deviation of our samples
, we obtained
, which is close to the previous value. A Gumbel-type curve fits well the samples density histogram as can be seen in Fig. 3B. It is observed that this distribution is typical of extreme values39 and exhibits a linkage to the roughness field40. The detour index is calculated based on the length of the journey on the urban network relative to the distance between the origin and destination in a straight line. Consequently, it is reasonable to anticipate that as a path deviates further from a direct linear trajectory or exhibits greater meandering, its corresponding value will be proportionally higher.
The aforementioned approach allows us to interpret the detour index as a measure of the city’s roughness, showing that most cities fall within a narrow range of values
. The nearness of detour index values suggests the presence of a universal pattern in the design of road networks.
City classification
The previous observation stands in contrast to the inherent variability in urban design, which is often dictated by the necessity to adapt to diverse geographical features, encompassing coastal and riverine environments, among others. We studied the urban road network to better understand this phenomenon. For each city, we calculated the average detour index
, network density, total length, road infrastructure accessibility (RIA) and orientation entropy, which is based on the compass headings of the streets24. These headings are divided in 36 bins of 10º each one and shifted -5º to avoid bin-edge effects. The Shannon´s entropy is given by
, where
represents the total number of bins,
indexes the bins, and
represents the proportion of orientations that fall in the
bin. Low values of entropy are associated with a grid design. Once these five variables have been estimated, machine learning algorithms are used to analyze them. Further details about these calculations are provided in the Methods section.
The EM clustering algorithm41 categorized the cities into three different types. Figure 4A illustrates how the total road length acts as a ranker: from left to right, the city size increases, from small to large, with the intermediate zone predominantly composed of cities with low entropy. Notably, the transition area between grid and large cities is densely populated. In a top-down analysis, most city types exhibit a non-grid structure, with their orientation entropy values exceeding
. The main aim of a city is to enable the rapid and efficient connection of its inhabitants. Despite variations in city types, the design must fulfil this purpose. We developed a decision tree using the C4.5 algorithm42 to better understand this classification. The scheme is depicted in Fig. 4B. The classifier achieves an accuracy of 90% incorporating the RIA index, which measures the amount of accessible road network per citizen. We now consider three factors: (1) as RIA increases travel time due to congestion decreases17, (2) grid patterns are more efficient25, and (3) there is a strong correlation between total road length and population8, which for our dataset is
. We define a small city as one with a population of less than 144,000 urban dwellers, while a large city is characterized by a road length of 5,652 km, which corresponds to 448,000 inhabitants according to a linear regression model.
Fig. 4.
Classification of cities. (A) Scatter plot of the total street length versus Orientation entropy. Grid city type is assigned to cities based on the presence of a grid design in their street layout, small/high entropy and large/high entropy denote urban areas with a non-grid pattern and relatively small/large total street length. (B) Decision tree associated with the previous classification.
Finally, the three city types can be understood as follows: in small cities, populations are less likely to grow despite a low RIA value
. Cities in the GRID category are medium-sized but efficient, with a RIA of
. As the population increases, the city’s design remains efficient. Large cities, on the other hand, are typically built in an organic or radial layout, which is not an optimal design. They exhibit higher RIA values
, which may be linked to less additional daily travel time.
Collapse of distributions
We conducted an analysis of the travel route distributions utilized by inhabitants to optimize their journeys, irrespective of the specific type of city being considered.
Cities depicted in Fig. 5A exhibit a maximum travel distance distribution within the range of
kilometers, irrespective of their population size. Given that this length is readily attainable for a vehicle, it can be assumed that census tracts are located close to one another, on average. Figure 5A illustrates that as the population of a given area increases, from Stamford with 135,000 inhabitants to New York with 8,700,000, the maximum density value decreases, widening the graphs. This led us to express the density histogram of the travel distance by taking its mean for each city, scaling the populations. The comparison of profiles is thus enabled, as illustrated in Fig. 5B–D. As depicted in Fig. 5B, a tight curve is generally observed; however, certain cities show oscillations deviating from this overall trend. The general trend is fitted by a Weibull curve43, a distribution that models a broad range of random variables, largely in the nature of a time to failure39. The skewed nature of the Weibull curve, indicating a concentration of values in the left portion of the graph, supports the hypothesis that journeys on the urban network are designed to be short. It must be highlighted that the aim of our optimal routes is to minimize transport costs, which is usually achieved by keeping the route as short as possible.
Fig. 5.
Collapse of travel and distance distributions. (A) Density histogram of travel distances for various cities, ordered by population. Normalized density histograms using each city mean for (B) travel distances (C) travel time and (D) Euclidean distances between centroids. The fitted lines are represented by Weibull functions.
The travel time associated with route distances is illustrated in Fig. 5C. A comparison of the graph with the one in Fig. 5B reveals that the fitted curve is less skewed. It is important to note that a sizable proportion of journeys may be relatively short, but occurs on low-speed roads, which will result in longer journey times. Conversely, a long journey on a motorway may take less time than a shorter distance on a secondary road.
Finally, the Euclidean distance density is shown in Fig. 5D, exhibiting a similar behavior to the travel distance depicted in Fig. 5B. The slight variation may be attributed to the fact that short journeys are typically conducted via secondary or tertiary roads, with a high detour index, whereas longer journeys tend to proceed through motorways, which are straighter, resulting in a distance closer to the Euclidean measure.
It can be concluded that the optimal routes are associated with the relative positioning of centroids in relation to one another and the characteristics of the connecting roads. Consequently, comprehending population distribution based on the fastest routes holds significant importance for our study.
Population distribution
Figure 5D illustrates an average profile for Euclidean distance paths that can be approximated by a Weibull-type curve. The objective now is to develop a simple spatial framework for centroids that can fit this profile. In other words, we aim to define a point pattern model where the distances align with the associated Weibull curve. Upon visual identification of the cities’ centroids, a common pattern was observed: cities with a population between 100,000 and 200,000 are characterized by a mean number of centroids of
and exhibit one demographic nucleus. This fact agrees with other results which establish that the monocentric regime is unstable with regards to population increase6 and that the majority of US metropolitan areas conserve a monocentric regime44. It is essential to consider two key factors to define this center: census tracts do not overlap, and population density decreases radially. More model details can be found in the Methods section.
We have simulated 1000 cities of 40 centroids, on a
units square. The histogram of their Euclidean distances is shown in Fig. 6A (Simulated). Then we have fitted a Weibull curve to these points (Simulated fit) and compared it with the Euclidean distances fit from Fig. 5D (Euclidean fit). As can be observed, both curves overlap. This suggests that the fundamental mechanisms that shorten distances are the establishment of a minimum area in which a population can settle, modeled as repulsion between centroids, and attraction towards the population center. The relationship between these two factors determines the city fundamental layout, with the structure of the optimized routes accounting for this. For larger populations the city becomes polycentric, although it seeks to replicate the mechanism previously described. In this way, transport costs for larger populations can be reduced, while there is a trade-off between attraction to the multiple centers and repulsion due to building limitations.
Fig. 6.
Simulated distributions of distances and population for 1000 cities. (A) Normalized density histogram of simulated Euclidean distances between centroids compared to the Weibull curve from Fig. 5B. The latter is obtained as a fit to the set of real cities. (B) Radial population density fitted by a decreasing exponential function. The inset shows one run of the model, with the centroids represented by white dots and highest density zones colored in brighter tones.
An examination of the radial density of centroids was conducted across 1000 runs to ascertain the manner in which urban characteristics give rise to the aforementioned distribution of Euclidean distances. The profile follows a decreasing exponential curve, which implies that the city has a high population density in the urban core, as we can derive from Fig. 6B and its inset. This suggests that the high population density in the city centers facilitates quicker travel between destinations, thereby strengthening the connection between route optimization and urban network design.
Discussion
The present study demonstrates how route optimization interacts with population to shape cities, creating a structure that connects people through short and fast routes.
We have shown that the total sum of optimal routes is related to population with a super-linear scaling of
. This contrasts with the exponents relative to total road length typically observed in other studies8 being
. The discrepancy can be attributed to two factors. First, in our calculations, the total number of routes scales with the square of the centroids number. Second, a route in the path is not equivalent to the road length. To illustrate this, let us consider a road segment between points A and B. This contributes only once to the total road length; however, the total sum of routes calculated may include at least two paths: from A to B and from B to A. Furthermore, this path may also be travelled as part of other journeys, meaning that the same road segment contributes to several routes between different locations.
A metric for assessing the efficiency of a route between two points is the detour index. The average of this coefficient between centroids was calculated by two methods, yielding values of 1.41 and 1.43. It is particularly useful to compare these results with those obtained in a similar way. Indeed, the detour index has been measured from the centroids of the census tracts to the nearest hospitals13, giving a value of
. The close value of
was estimated using random points in the 51 most populous metropolitan areas in the Unites States16. It is important to note that the detour index decreases with travel distance, as longer journeys are more likely to utilize highways or main roads that straighten the route. Thus, the values obtained in our work are characteristic of distances under 10 km16, highlighting the closeness of several centroids to each other. The spatial proximity of population groups contributes to the reduction of travel routes. Indeed, the clustering mechanism centered around a core exhibits a high degree of effectiveness, leading to its adoption by the majority of cities within our analysis.
Subsequent to the analysis of the detour index, our study considered several other characteristics pertinent to the urban network, such as road density, total length, road infrastructure accessibility, and orientation entropy. The RIA values17 for San Antonio and Washington are
and
, respectively, with deviations from our measures of
and
. The observed deviations may stem from the measured zone, as the former values are specifically focused on the urban core, whereas our measurements encompass the entire network. It is expected that the RIA for San Antonio would be similar, although the network becomes less dense as it moves away from the core. The significant deviation for Washington’s value can be attributed to the influence of the Anacostia River, which has a strong impact on the urban road network. A comparison of our orientation entropy measures with those from another study that characterized 100 cities worldwide24 shows a high degree of similarity, indicating the use of a consistent methodology. For example, the entropies calculated for Washington and Charlotte were
and
, respectively, closely matching our values of
and
.
Once it was established that our estimations are consistent with values from other studies, we proceeded to analyze the whole set of variables using machine learning techniques to categorize city structures, as illustrated in Fig. 4. While this analysis could be based only on entropy measures23,24, we focus on a combination with other indicators. The application of a clustering algorithm to the studied urban areas permitted their categorization into three distinct typologies: grid, small-scale, and large-scale. High orientation entropy characterized both the small-scale and large-scale city typologies. In contrast, approximately half of the cities within our sample conformed to the grid typology, exhibiting low orientation entropy. A necessary prerequisite for a comprehensive understanding of these typologies is the adoption of a historical lens. It is pertinent to note that during the 18th through twentieth centuries, the orthogonal grid constituted the primary paradigm for spatial organization in American urban development. This resulted from their historical development which was planned according to a regular grid pattern45. In fact, even Thomas Jefferson himself promoted the development of this kind of urban layout starting in 178046. Consequently, it is anticipated that these grid systems would exhibit the highest prevalence in our measurements. The situation observed in European cities presents a different pattern. Many of these urban centers originated as small settlements situated near coastal or riverine areas and subsequently underwent expansion in a less structured manner around a central nucleus. These cities have evolved to accommodate growing populations, and more recently, they have been merging into polycentric regions47. For example, the orientation entropy of Madrid is
, which is considerably higher than Washington’s value of
.
Small and large cities with high entropy must be explained in terms of RIA and population. Since street length is proportional to population, we estimate that small cities have populations under 150,000, while large cities have populations exceeding 450,000. A high RIA indicates less additional time added to each trip. We hypothesize that larger urban centers expand their road infrastructure to mitigate this increased travel time. Conversely, smaller cities, notwithstanding their lower RIA, are less prone to traffic congestion owing to their comparatively smaller populations. Currently, there is an ongoing discussion about American cities coming back to an orthogonal grid design to improve their efficiency25.
The main advantage of these cities is the minimization of the travel time, despite their different structures. Thus, when normalized by their average values, time and travel distance curves collapse into Weibull functions, as depicted in Fig. 5. Their distribution is right-skewed, suggesting that the majority of routes are characterized by short distances and durations. A recent study which calculates the detour index by considering monocentric and radial structures for cities a priori, discovered universal properties of the detour index15. The aforementioned properties included the collapse of the detour index curves upon scaling the journey distance by the city radius. The above observation underscores the relevance of the core-periphery model in elucidating the shared characteristics observed across diverse urban networks, irrespective of their geographical context or historical development. However, the debate concerning monocentric versus polycentric urban structures remains pertinent. Specifically, a radial analysis of cities, grounded in a monocentric perspective, may overlook the well-established polycentric nature of urban environments. Conversely, a purely polycentric approach can obscure the evolution of key variables as a function of distance from the city center47. It should be noted that the previously discussed model15 is monocentric in nature and cannot be applied to the world’s largest megacities, which are characterized by a polycentric layout. Cities evolve from monocentric to polycentric based on a balance between wages, distance and traffic congestion for their inhabitants6. There is a critical population threshold that leads to the emergence of multiple centers, even with an efficient road system capable of handling high traffic volumes. A key finding of our methodology is the convergence of data from both polycentric and monocentric cities onto a single scaling curve. The finding suggests a unifying principle in the organization of cities: the minimization of connectivity costs for individuals. It can be inferred that this is an inherent human tendency, exerting a pervasive influence on urban design strategies.
Finally, we have developed a simple framework for the distribution of a monocentric population, based on a point pattern for centroids. The proposed framework is a hard sphere model with attraction to the city center, which minimizes the fitting error to the adjusted distribution of Euclidean distances in Fig. 5D. We have found that the probability of the existence of a centroid depends on the inverse distance squared, which can be linked to gravitational models of population48,49. Furthermore, the population density profile yielded a decreasing exponential curve, which is one of the expressions that have been used to estimate these distributions since the 1950s48,50.
In conclusion, by employing a route optimization perspective, we achieved a unified understanding of various urban properties that are often analyzed separately. The emergent interplay between population distribution and the organization of the urban road network constitutes the underlying causal factor responsible for the consistent overarching patterns discernible in multiple urban environments.
A direction for future research is the study of European cities. Their evolution is typically based on a center that has acted as a historical nucleus and merged with others. Another potential area for further investigation could be the development of a point pattern model for polycentric cities that also fits the Euclidean distance distribution presented in this study.
Methods
Data sources
Two sources of data have been used in this study: US Census Bureau38 and OpenStreetMap51. The geographic and population data are retrieved from the census at two levels: tracts and places. Census tracts are small, relatively permanent statistical subdivisions of a county which average 4,000 inhabitants. Places are defined as a concentration of population, housing, and commercial structures, identifiable by name. Specifically, the total population of each one is taken from the 5-year American Community Survey which finished in 2021. Consequently, census tracts and places boundaries correspond to that year. These data can be accessed using the R package tidycensus52. Urban road network data utilized in this study were obtained from OpenStreetMap51 (retrieved via the Geofabrik website53) in autumn 2023.
OD matrices
On one hand, a geographical intersection operation is performed using the boundaries on census tracts and cities. The centroids of all the census tracts that intersect or dwell inside the city limits were estimated. Only the centroids within the city were selected as origins and destination points. At this stage, the Euclidean distance matrix between centroids has been calculated. On the other hand, road network data were supplied to a local server, downloaded from the OpenRouteService webapge54. The software considers how well certain streets are suited for the selected mode of transportation, i.e. car. Then, this priority is used in combination with the fastest option to yield the optimal route between centroids by using a contraction hierarchies’ algorithm55. The procedure minimizes travel time under idealized, static traffic flow conditions, which are based on maximum speeds for each road type, with edge weights assigned proportionally to travel time. Intersections are evaluated as nodes ranked by their importance, determined by the impact their removal would have on the total travel time of remaining optimal routes. Hence, intersections (nodes) on high-speed roadways are ranked highly, as their elimination necessitates the use of slower secondary routes compared to those on tertiary roads. Prioritizing high-speed corridors between origin and destination points optimizes route calculations by discarding intermediate access points, thereby increasing processing speed by reducing the number of considered nodes. The connection between the main R program56 and the server was made by an R API57 which manages their communication. In this way, distances and times matrices for travels over the urban network have been obtained.
Detour index
The value of the detour index has been calculated in two ways: through linear regression and statistical estimation. The first method involved plotting the total travel distances between city centroids against their corresponding Euclidean distances across the entire set of cities. Obviously, the number of these routes for the k-city,
, is equal. Assuming a linear relationship between both distances, the proportionality constant between them for a given city,
, can be written as:
![]() |
1 |
where the bar denotes average. Therefore,
, the ratio between the total travel and Euclidean distances for the k-city, can also be understood as the mean ratio between of travel length to the mean Euclidean distance. Equation (1) is referred in the literature as unweighted circuity16; however, this method tends to favor the longest itineraries. To avoid this, the second calculation method involves a double average. The first one takes place over all the routes between centroids of each k-city, previously defined as
. It must be noted that the average guarantees that all itineraries are equally weighted,
. After calculating this value for all the samples, a second average is used to calculate the mean detour index as
.
It is imperative to recognize that while the first method facilitates the identification of cities that have an anomalous detour index value, the subsequent method allows for the examination of the distribution of these indices within the designated set of cities.
City classification
The total road length, road density, and orientation entropy for each city are calculated considering the network graph as unweighted and using the Python OSMnx package58. Road infrastructure accessibility is defined as the ratio of total road length to the number of inhabitants in the city. The average detour index of the k-city is given by
. Once these data were calculated, we applied the Expectation–Maximization (EM) clustering algorithm41. The EM method is a generalization of the maximum likelihood estimation for the case of incomplete data. Specifically, this algorithm aims to estimate the parameters that maximize the logarithmic probability of the observed data. To determine if a simple procedure for characterizing cities existed, we used the C4.5 decision tree algorithm42 on the previous classification. This algorithm starts with the original dataset as the root node. On each iteration, it selects the attribute with the largest information gain, creating a new node. It is important to note that the city of New York was treated as an outlier and excluded from the analysis, as its inclusion reduced the performance of the tree classifier by
. New York City presents a unique case study, defying simple categorization. On one hand, its extensive road network and high orientation entropy of 3.53 place it within the large/high-entropy city classification. However, its geographical constraints, with a significant portion spanning Long Island, Manhattan, and Staten Island, limit road expansion due to surrounding water bodies. Compounding this, New York City is the most densely populated city in our sample. Consequently, its RIA index is a mere 1.28, a value typically associated with much smaller urban areas in our classification.
Population distribution fit
Point pattern fitting typically involves proposing multiple models with several parameter values and comparing them with an experimental sample minimizing error estimation59. A key distinction of our methodology lies in the observation that no actual city perfectly aligns with the Euclidean distance model presented by the Weibull function in Fig. 5D. This discrepancy necessitates the development of an alternative validation strategy, as a directly comparable experimental point pattern is unavailable. To address this, we propose modeling a theoretical point pattern that generates a Euclidean distance distribution closely approximating our empirical fit. This can be achieved by minimizing the sum of squared errors between the theoretical and empirical distributions. We consider two fundamental principles: (a) centroids cannot overlap and (b) the probability of settling a centroid decays with distance from the center. The non-overlapping condition a) can be imposed using a hard sphere model with diameter φ, while the attraction to the nucleus b) can be expressed as a decreasing probability distance,
. Here β is the power of this dependency, and r varies between 0 and 1. Thus, a centroid is added when a) and b) are both satisfied simultaneously. Algorithm 1 presents the pseudocode for this process:
Algorithm 1.
Simulation of centroids distribution.
We have swept the range
adopting an interval of 0.025 for the hard sphere diameter, φ. The attraction to the center is modulated by the expression
, where β belongs to the interval
with an interval distance of 0.5. For each set of parameters within the model, 1000 simulations were conducted, resulting that
and
generate the optimal fit. The number of centroids was set to 40 and the average of the cities previously considered as monocentric. Note that we consider a polycentric city as one in which there are two or more comparable population clusters within the same region.
Acknowledgements
The authors acknowledge funding from the Spanish Ministry of Science and Education through the project PID2021-123969NB-I00.
Author contributions
D.O. and E.K. designed research; D.O. conducted the research; D.O. and E.K. wrote the manuscript. Both authors reviewed, commented on, and approved the final version of the manuscript.
Data availability
Original datasets can be downloaded from the census data webpage38 and the Geofabrik server53 (see the Methods section). Each OD matrix can be calculated via the supplementary code. Data on total lengths, times and the list of cities are also given via Github.
Code availability
Scripts and data used for this study are publicly available on the GitHub account https://github.com/dortega144/
Declarations
Competing interests
The authors declare no competing interests.
Footnotes
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
References
- 1.Bettencourt, L. M. Introduction to Urban Science: Evidence and Theory of Cities as Complex Systems (Wiley, 2021). [Google Scholar]
- 2.Von Thünen, J. H. & Hall, P. G. Isolated State (Pergamon, 1966). [Google Scholar]
- 3.Krugman, P. Increasing returns and economic geography. J. Pol. Econ.99, 483–499 (1991). [Google Scholar]
- 4.Alonso, W. Location and Land Use: Toward a General Theory of Land Rent (Harvard University Press, 1965). [Google Scholar]
- 5.Frazer, J. The Reshaping of City Cores That Were Designed For Cars. Forbeshttps://www.forbes.com/sites/johnfrazer1/2019/08/06/the-reshaping-of-city-cores-that-were-designed-for-cars/ (2019).
- 6.Louf, R. & Barthelemy, M. Modeling the polycentric transition of cities. Phys. Rev. Lett.111, 198702 (2013). [DOI] [PubMed] [Google Scholar]
- 7.Angel, S. & Blei, A. M. The spatial structure of American cities: The great majority of workplaces are no longer in CBDs, employment sub-centers, or live-work communities. Cities51, 21–35 (2016). [Google Scholar]
- 8.Bettencourt, L. M. The origins of scaling in cities. Science340, 1438–1441 (2013). [DOI] [PubMed] [Google Scholar]
- 9.Bettencourt, L. M., Lobo, J., Helbing, D., Kühnert, C. & West, G. B. Growth, innovation, scaling, and the pace of life in cities. Proc. Natl. Acad. Sci. USA104, 7301–7306 (2007). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 10.Succar, R. & Porfiri, M. Urban scaling of firearm violence, ownership and accessibility in the United States. Nat. Cities1, 216–224. 10.1038/s44284-024-00034-8 (2024). [Google Scholar]
- 11.Lu, M., Zhou, C., Wang, C., Jackson, R. B. & Kempes, C. P. Worldwide scaling of waste generation in urban systems. Nat. Cities1, 126–135. 10.1038/s44284-023-00021-5 (2024). [Google Scholar]
- 12.Molinero, C. & Thurner, S. How the geometry of cities determines urban scaling laws. J. R. Soc. Interface18, 20200705 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 13.Boscoe, F. P., Henry, K. A. & Zdeb, M. S. A nationwide comparison of driving distance versus straight-line distance to hospitals. Prof. Geogr.64, 188–196 (2012). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14.Chen, X. & Chen, Y. Quantifying the relationships between network distance and straight-line distance: Applications in spatial bias correction. Ann. GIS27, 351–369 (2021). [Google Scholar]
- 15.Lee, M., Cheon, S. H., Son, S. W., Lee, M. J. & Lee, S. Exploring the relationship between the spatial distribution of roads and universal pattern of travel-route efficiency in urban road networks. Chaos Soliton Fract.174, 113770 (2023). [Google Scholar]
- 16.Giacomin, D. J. & Levinson, D. M. Road network circuity in metropolitan areas. Environ. Plann. B Plann. Des.42, 1040–1053 (2015). [Google Scholar]
- 17.Dingil, A. E., Rupi, F. & Stasiskiene, Z. A macroscopic analysis of transport networks: The influence of network design on urban transportation performance. Int. J. Transp. Dev. Integr.3, 331–343 (2019). [Google Scholar]
- 18.Barthelemy, M. Spatial networks. Phys. Rep.499, 1–101 (2011). [Google Scholar]
- 19.Barthelemy, M. The Structure and Dynamics of Cities: Urban Data Analysis and Theoretical Modeling (Cambridge University Press, 2016). [Google Scholar]
- 20.Barthelemy, M. Spatial Networks: A Complete Introduction: From Graph Theory and Statistical Physics to Real-World Applications (Springer International Publishing, 2022). [Google Scholar]
- 21.Merchán, D., Winkenbach, M. & Snoeck, A. Quantifying the impact of urban road networks on the efficiency of local trips. Transp. Res. Part A Policy Pract.135, 38–62 (2020). [Google Scholar]
- 22.Shannon, C. E. A mathematical theory of communication. Bell Syst. Tech. J.27, 379–423 (1948). [Google Scholar]
- 23.Xie, F. & Levinson, D. Measuring the structure of road networks. Geogr. Anal.39, 336–356 (2007). [Google Scholar]
- 24.Boeing, G. Urban spatial order: Street network orientation, configuration, and entropy. Appl. Netw. Sci.4, 1–19 (2019). [Google Scholar]
- 25.Boeing, G. Off the grid…and back again?. J. Am. Plan. Assoc.87, 123–137 (2021). [Google Scholar]
- 26.Barthélemy, M. & Flammini, A. Co-evolution of density and topology in a simple model of city formation. Netw. Spat. Econ.9, 401–425 (2009). [Google Scholar]
- 27.Zhao, F. X., Zhao, F. W. & Sun, H. A coevolution model of population distribution and road networks. Phys. A536, 120860 (2019). [Google Scholar]
- 28.Zhao, F., Wu, J., Sun, H., Gao, Z. & Liu, R. Population-driven urban road evolution dynamic model. Netw. Spat. Econ.16, 997–1018 (2016). [Google Scholar]
- 29.Zhao, F., Sun, H., Wu, J., Gao, Z. & Liu, R. Analysis of road network pattern considering population distribution and central business district. PLoS ONE11, e0151676 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 30.Louail, T. et al. Uncovering the spatial structure of mobility networks. Nat. Commun.6, 6007. 10.1038/ncomms7007 (2015). [DOI] [PubMed] [Google Scholar]
- 31.Louail, T. et al. From mobile phone data to the spatial structure of cities. Sci. Rep.4, 1–12 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 32.Xu, Y. et al. Urban dynamics through the lens of human mobility. Nat. Comput. Sci.3, 611–620. 10.1038/s43588-023-00484-5 (2023). [DOI] [PubMed] [Google Scholar]
- 33.Mizzi, C. et al. Individual mobility deep insight using mobile phones data. EPJ Data Sci.12, 56 (2023). [Google Scholar]
- 34.Riascos, A. P. & Mateos, J. L. Networks and long-range mobility in cities: A study of more than one billion taxi trips in New York City. Sci. Rep.10, 4022 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 35.Tenkanen, H. & Toivonen, T. Longitudinal spatial dataset on travel times and distances by different travel modes in Helsinki Region. Sci. Data7, 77 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 36.Wang, P., Hunter, T., Bayen, A. M., Schechtner, K. & González, M. C. Understanding road usage patterns in urban areas. Sci. Rep.2, 1001 (2012). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 37.Alessandretti, L., Aslak, U. & Lehmann, S. The scales of human mobility. Nature587, 402–407 (2020). [DOI] [PubMed] [Google Scholar]
- 38.Unites States Census Bureau. https://www.census.gov/ (2023).
- 39.Gumbel, E. J. Statistics of Extremes (Columbia University Press, 1958). [Google Scholar]
- 40.Antal, T., Droz, M., Györgyi, G. & Rácz, Z. Roughness distributions for 1/fα signals. Phys. Rev. E65, 046140 (2002). [DOI] [PubMed] [Google Scholar]
- 41.Do, C. B. & Batzoglou, S. What is the expectation maximization algorithm?. Nat. Biotechnol.26, 897–899 (2008). [DOI] [PubMed] [Google Scholar]
- 42.Quinlan, J. R. C4.5: Programs for Machine Learning (Morgan Kaufmann, 1993). [Google Scholar]
- 43.Hansen, A. The three extreme value distributions: An introductory review. Front. Phys.8, 604053 (2020). [Google Scholar]
- 44.Arribas-Bel, D. & Sanz-Gracia, F. The validity of the monocentric city model in a polycentric age: US metropolitan areas in 1990, 2000 and 2010. Urban Geogr.35, 980–997 (2014). [Google Scholar]
- 45.Jackson, K. T. Crabgrass Frontier: The Suburbanization of the United States (Oxford University Press, 1995). [Google Scholar]
- 46.Jacobson, D. Place and Belonging in America (Johns Hopkins Press, 2002). [Google Scholar]
- 47.Lemoy, R. Monocentric or polycentric city? An empirical perspective. 1–16 10.48550/arXiv.2403.07624 (2024).
- 48.Wang, F. & Guldmann, J. M. Simulating urban population density with a gravity-based model. Socioecon. Plann. Sci.30, 245–256 (1996). [Google Scholar]
- 49.Li, Y., Rybski, D. & Kropp, J. P. Singularity cities. Environ. Plan. B: Urban Anal. City Sci.48, 43–59 (2019). [Google Scholar]
- 50.Clark, C. Urban population densities. J. R. Stat. Soc. Ser. A114, 490 (1951). [Google Scholar]
- 51.OpenStreetMap. https://www.openstreetmap.org/ (2023).
- 52.Walker, K. & Herman, M. Load US Census Boundary and Attribute Data as ‘tidyverse’ and ’sf’-Ready Data Frames [R package tidycensus version 1.6.3]. Preprint at https://CRAN.R-project.org/package=tidycensus (2024).
- 53.Geofabrik. http://www.geofabrik.de/ (2023).
- 54.Openrouteservice. https://openrouteservice.org/ [Server version 7.1.0] (2023).
- 55.Geisberger, R., Sanders, P., Schultes, D. & Delling, D. Contraction hierarchies: Faster and simpler hierarchical routing in road networks. In Lecture Notes in Computer Science (Including Subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) 5038 LNCS, 319–333 (2008).
- 56.R Core Team & R Foundation for Statistical Computing. R: A language and environment for statistical computing. https://cran.r-project.org/ [R version 4.4.0] (2024).
- 57.Andrzej, O. Openrouteservice: Openrouteservice API Client. https://github.com/GIScience/openrouteservice-r/ [version 0.4.2] (2024).
- 58.Boeing, G. OSMnx: A Python package to work with graph-theoretic OpenStreetMap street networks. J. Open. Source Softw.2, 215 (2017). [Google Scholar]
- 59.Baddeley, A., Rubak, E. & Turner, R. Spatial Point Patterns: Methodology and Applications with R (CRC Press, 2016). [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Data Availability Statement
Original datasets can be downloaded from the census data webpage38 and the Geofabrik server53 (see the Methods section). Each OD matrix can be calculated via the supplementary code. Data on total lengths, times and the list of cities are also given via Github.
Scripts and data used for this study are publicly available on the GitHub account https://github.com/dortega144/








