OSMEnvironment
An environment backed by an OpenStreetMap extract stored in file. It encloses the navigation logic, loading the map lazily the first time navigation is required. Routes are cached in memory for performance reasons.
Parameters
the incarnation to be used.
the file path where the map data is stored. Accepts OSM maps of any format (xml, osm, pbf). The map will be processed, optimized and stored for future use. If null, navigation is unavailable.
if true, the nodes will be placed on the street nearest to the desired position. Defaults to true when a file is provided, to false otherwise.
if true, the nodes which are too far from a street will be simply discarded. If false, they will be placed anyway, in the original position.
the symbols of IEEE 754-encoded position that may be discarded when comparing two positions, allowing quicker retrieval of the route between two positions via cache.
Type Parameters
concentration type
Constructors
Types
Default values for the OSMEnvironment options.
Properties
Functions
This method relies on the map data and computes a route towards some absolute coordinate solving a TSP problem. It's up to the specific it.unibo.alchemist.model.Action calling this method to effectively move nodes along the path.
This method relies on the map data and computes a route towards some absolute coordinate solving a TSP problem. It's up to the specific it.unibo.alchemist.model.Action calling this method to effectively move nodes along the path. It uses the fastest path as a metric.
Returns the routing service of this environment.