Package com.anylogic.engine.gis
- java.lang.Object
- com.anylogic.engine.gis.AbstractGISRouteProvider
- com.anylogic.engine.gis.AbstractGISRouteProviderWithCache
- com.anylogic.engine.gis.GraphHopperRouteProvider
- 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
Modifier and Type | Field | Description |
---|---|---|
static final String | anylogicRouteCache |
Constructor | Description |
---|---|
GraphHopperRouteProvider |
Modifier and Type | Method | Description |
---|---|---|
void | close() |
Call com.graphhopper.GraphHopper.close() to release files.
|
static com.graphhopper.GraphHopper | createGraphhopperInstance() | |
String | getGraphFilesPath() | |
String | getPathFindingAlgorithm() | |
String | getRouteCacheId() | |
RoutingMethod | getRoutingMethod() | |
void | setPathFindingAlgorithm | |
void | setRoutingMethod |
getDistance, getPathData, getPathData, getPrecisionInMeters, isThrowError, setPrecisionInMeters, setRouteNotFoundBehavior, setThrowError
public static final String anylogicRouteCache
- See Also:
- Constant Field Values
public GraphHopperRouteProvider(String graphFilesPath, String pathFindingAlgorithm, RoutingMethod routingMethod)
@AnyLogicInternalAPI public static com.graphhopper.GraphHopper createGraphhopperInstance()
@AnyLogicInternalAPI public String getGraphFilesPath()
@AnyLogicInternalAPI public RoutingMethod getRoutingMethod()
@AnyLogicInternalAPI public void setRoutingMethod(RoutingMethod routingMethod)
@AnyLogicInternalAPI public String getPathFindingAlgorithm()
@AnyLogicInternalAPI public void setPathFindingAlgorithm(String pathFindingAlgorithm)
@AnyLogicInternalAPI public void close()
Call com.graphhopper.GraphHopper.close() to release files.
@AnyLogicInternalAPI public String getRouteCacheId()
- Specified by:
getRouteCacheId
in classAbstractGISRouteProviderWithCache