AnyLogic
Expand
Font size
All Implemented Interfaces:
IGISRouteProvider, IRouteProvider<Curve<GISMarkupSegment>>, Serializable

public class GraphHopperRouteProvider
extends AbstractGISRouteProviderWithCache
Provider of routes www.graphhopper.com. It requires file based routing graph and works without internet connection.
Author:
AnyLogic North America, LLC https://anylogic.com
See Also:
Serialized Form

Constructor Summary

ConstructorDescription
GraphHopperRouteProvider(String graphFilesPath, String pathFindingAlgorithm, RoutingMethod routingMethod, int precisionInMeters) 

Method Summary

Modifier and TypeMethodDescription
voidclose()
Call com.graphhopper.GraphHopper.close() to release files.

Methods inherited from class com.anylogic.engine.gis.AbstractGISRouteProvider

getDistance, getPathData, getPathData, isThrowError, setRouteNotFoundBehavior

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods inherited from interface com.anylogic.engine.gis.IGISRouteProvider

getDistance, getDistance, getDistance, getLength, getPathData, getPathData, getPositionAtOffset, getRoute, getRoute, getRoute, getRoute

Constructor Details

GraphHopperRouteProvider

public GraphHopperRouteProvider(String graphFilesPath,
 String pathFindingAlgorithm,
 RoutingMethod routingMethod,
 int precisionInMeters)

Method Details

close

@AnyLogicInternalAPI
public void close()
Call com.graphhopper.GraphHopper.close() to release files.