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

Field Summary

Modifier and TypeFieldDescription
static final StringanylogicRouteCache 

Constructor Summary

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

Method Summary

Modifier and TypeMethodDescription
voidclose()
Call com.graphhopper.GraphHopper.close() to release files.
static com.graphhopper.GraphHoppercreateGraphhopperInstance() 
StringgetGraphFilesPath() 
StringgetPathFindingAlgorithm() 
StringgetRouteCacheId() 
RoutingMethodgetRoutingMethod() 
voidsetPathFindingAlgorithm(String pathFindingAlgorithm) 
voidsetRoutingMethod(RoutingMethod routingMethod) 

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

getDistance, getPathData, getPathData, getPrecisionInMeters, isThrowError, setPrecisionInMeters, setRouteNotFoundBehavior, setThrowError

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

Field Details

anylogicRouteCache

public static final String anylogicRouteCache
See Also:
Constant Field Values

Constructor Details

GraphHopperRouteProvider

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

Method Details

createGraphhopperInstance

@AnyLogicInternalAPI
public static com.graphhopper.GraphHopper createGraphhopperInstance()

getGraphFilesPath

@AnyLogicInternalAPI
public String getGraphFilesPath()

getRoutingMethod

@AnyLogicInternalAPI
public RoutingMethod getRoutingMethod()

setRoutingMethod

@AnyLogicInternalAPI
public void setRoutingMethod(RoutingMethod routingMethod)

getPathFindingAlgorithm

@AnyLogicInternalAPI
public String getPathFindingAlgorithm()

setPathFindingAlgorithm

@AnyLogicInternalAPI
public void setPathFindingAlgorithm(String pathFindingAlgorithm)

close

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

getRouteCacheId

@AnyLogicInternalAPI
public String getRouteCacheId()
Specified by:
getRouteCacheId in class AbstractGISRouteProviderWithCache