OSMEnvironment
class OSMEnvironment<T> : Abstract2DEnvironment<T, GeoPosition> , MapEnvironment<T, GraphHopperOptions, GraphHopperRoutingService>
Content copied to clipboard
This class serves as template for more specific implementations of environments using a map. It encloses the navigation logic, but leaves the subclasses to decide how to provide map data (e.g. loading from disk or rely on online services). The data is then stored in-memory for performance reasons.
Parameters
<T>
concentration type
Constructors
Link copied to clipboard
Builds a new OSMEnvironment without an actual backing map.
Link copied to clipboard
open fun OSMEnvironment(incarnation: Incarnation<T, GeoPosition>, file: String)
Content copied to clipboard
Builds a new OSMEnvironment, with nodes not forced on streets.
Link copied to clipboard
open fun OSMEnvironment(incarnation: Incarnation<T, GeoPosition>, file: String, onStreets: Boolean)
Content copied to clipboard
Link copied to clipboard
open fun OSMEnvironment(incarnation: Incarnation<T, GeoPosition>, file: String, onStreets: Boolean, onlyOnStreets: Boolean)
Content copied to clipboard
Link copied to clipboard
open fun OSMEnvironment(incarnation: Incarnation<T, GeoPosition>, file: String, approximation: Int)
Content copied to clipboard
Link copied to clipboard
open fun OSMEnvironment(incarnation: Incarnation<T, GeoPosition>, file: String, approximation: Int, onStreets: Boolean, onlyOnStreets: Boolean)
Content copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
open fun computeRoute(p1: GeoPosition, p2: GeoPosition): Route<GeoPosition>
Content copied to clipboard
open fun computeRoute(node: Node<T>, coord: GeoPosition): Route<GeoPosition>
Content copied to clipboard
open fun computeRoute(from: GeoPosition, to: GeoPosition, options: GraphHopperOptions): Route<GeoPosition>
Content copied to clipboard
open fun computeRoute(node: Node<T>, coord: GeoPosition, options: GraphHopperOptions): Route<GeoPosition>
Content copied to clipboard
This method relies on the map data, and computes a route towards some absolute coordinate solving a TSP problem.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard