OSMEnvironment

constructor(incarnation: Incarnation<T, GeoPosition>)

Builds a new OSMEnvironment without an actual backing map. This environment will be unable to use the navigation system.

Parameters

incarnation

the incarnation to be used.


constructor(incarnation: Incarnation<T, GeoPosition>, file: String)

Builds a new OSMEnvironment, with nodes not forced on streets.

Parameters

incarnation

the incarnation to be used.

file

the file path where the map data is stored


constructor(incarnation: Incarnation<T, GeoPosition>, file: String, onStreets: Boolean)

Parameters

incarnation

the incarnation to be used.

file

the file path where the map data is stored

onStreets

if true, the nodes will be placed on the street nearest to the desired Position.


constructor(incarnation: Incarnation<T, GeoPosition>, file: String, onStreets: Boolean, onlyOnStreets: Boolean)

Parameters

incarnation

the incarnation to be used.

file

the file path where the map data is stored

onStreets

if true, the nodes will be placed on the street nearest to the desired Position.

onlyOnStreets

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.


constructor(incarnation: Incarnation<T, GeoPosition>, file: String, approximation: Int)

Parameters

incarnation

the incarnation to be used.

file

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.

approximation

the amount of ciphers of the IEEE 754 encoded position that may be discarded when comparing two positions, allowing a quicker retrieval of the route between two position, since the cache may already contain a similar route which can be considered to be the same route, according to the level of precision determined by this value


constructor(incarnation: Incarnation<T, GeoPosition>, file: String, approximation: Int, onStreets: Boolean, onlyOnStreets: Boolean)

Parameters

incarnation

the incarnation to be used.

file

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.

approximation

the amount of ciphers of the IEEE 754 encoded position that may be discarded when comparing two positions, allowing a quicker retrieval of the route between two position, since the cache may already contain a similar route which can be considered to be the same route, according to the level of precision determined by this value

onStreets

if true, the nodes will be placed on the street nearest to the desired Position.

onlyOnStreets

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.