multi-core computation; (3) an empirical evaluation
of the benefits obtained thanks to the JGraphT refine-
ment; (4) a preliminary evaluation of the effects of the
Morandi bridge collapse on the characteristics of the
region Liguria road network.
The rest of the paper is organized as follows: Sec-
tion 2 describes the model of the road network that
can be obtained starting from the data available in
OSM and briefly recalls some centrality metrics. In
Section 3 we present some related work and in Sec-
tion 4 we discuss the improvements applied to the
JGraphT library in order to fully exploit parallelism
and fix some problems. Section 5 reports the results of
the empirical study aimed at quantifying the improve-
ments due to the JGraphT modifications, and shows
a preliminary analysis of the effects of the Morandi
bridge collapse. Finally, Section 6 concludes the work
discussing possible future directions.
2 ROAD NETWORK AND
METRICS
In order to analyse a road network we need accurate
data representing the network itself. Our choice is to
rely on OpenStreetMap since nowadays it is one of
the major sources for roads information. OSM is a
crowd-sourced project collecting extensive geographic
data such as roads, buildings, or other elements like
points of interest, shops, traffic lights, etc. Indeed,
rather than the map itself, the data generated by the
project is considered its primary output: the entire
database of OSM can be freely accessed, and used
as the basis for third-parties map-based applications
or research studies that analyse roads characteristics
or use the map as a data source for traffic simulation
models (Zilske et al., 2011).
2.1 OSM Graph Description
OSM data can be downloaded in different ways start-
ing from the OSM website download area
3
. It is pos-
sible to download the full dataset (which is huge) or
to select smaller areas. Map data are XML formatted,
stored into .osm files, and can be serialized into other
formats to be used in third-party applications.
Elements are the basic components of the OSM
conceptual data model of the physical world. They
consist of (1) nodes, defining points in space, (2) ways,
defining linear features (e.g., roads, rivers, etc.) and
area boundaries (e.g., buildings, forests, etc.), and
3
https://wiki.openstreetmap.org/wiki/Downloading_
data
(3) relations, which are used to explain how differ-
ent elements work or are connected together.
A way is a sequence of nodes and two ways inter-
sect if they share a common node. Our first prototype
was developed by mapping intersections between ways
into graph nodes, and by connecting these nodes when
there was a way connecting them.
However, we realized that the JGraphT library sup-
ports centrality measures only for nodes and not for
edges and therefore we adopted a different graph struc-
ture, building a line graph
4
. Ways in OSM data be-
come nodes and there is an edge from node A to node
B if (1) the ways represented by A and B share an
intersection and (2) the orientation of the ways allows
a movement from A to B. Therefore, each node in the
graph represents a complete road or a segment, and
the resulting graph is directed.
Only public and accessible car roads have been
included into the graph. Any other type of way (pedes-
trian only, private, etc.) has been filtered out using the
tags in the OSM dataset describing roads properties.
To take into account physical constraints of the
road network and of the territory, graph edges must be
weighted. The weights have been computed taking into
account as main parameter the time in seconds needed
to traverse the source way, at full legal speed, w.r.t.
street characteristics. Each weight is in fact multiplied
by different (cumulative) coefficients which have been
defined considering several streets properties available
in the dataset.
Table 1 shows the model parameters that somehow
mimic the behaviours of the drivers. For instance, in
streets which are accessible to bicycles the average
speed decreases and therefore we used a coefficient
equal to 1.2 to mimic a crossing time increase. On the
other hand, in absence of pedestrians the temptation
to slightly overcome speed limits is high, at least in
countries where there is some tolerance with respect
to legal speed; hence we used a coefficient equal to
0.95 to mimic a crossing time decrease. The same
reasoning holds for all the model parameters in order to
take into account speed variations according to streets
properties.
Despite being arbitrarily chosen, the parameters,
and therefore the weights used in the computation,
allowed us to get results similar to those computed
by common navigation solutions like those in Google
Maps (in particular when searching for the fastest path
between two locations). Thus, even if they need to
be further refined, these values can be considered a
reasonable starting point for this preliminary study.
4
https://en.wikipedia.org/wiki/Line_graph
GISTAM 2019 - 5th International Conference on Geographical Information Systems Theory, Applications and Management
260