OSMEnvironment

constructor(incarnation: Incarnation<T, GeoPosition>, file: String? = null, onStreets: Boolean = file != null, onlyOnStreets: Boolean = DEFAULT_FORCE_STREETS, approximation: Int = DEFAULT_APPROXIMATION)

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. If null, navigation is unavailable.

onStreets

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.

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.

approximation

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

T

concentration type