AnyLogic
Expand
Font size
All Implemented Interfaces:
IGISRouteProvider, IRouteProvider<Curve<GISMarkupSegment>>, java.io.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

Fields 
static java.lang.String anylogicRouteCache  
Modifier and Type Field Description

Constructor Summary

Constructors 
GraphHopperRouteProvider​(java.lang.String graphFilesPath, java.lang.String pathFindingAlgorithm, RoutingMethod routingMethod)  
Constructor Description

Method Summary

All Methods Static Methods Instance Methods Concrete Methods 
void close()
Call com.graphhopper.GraphHopper.close() to release files.
static com.graphhopper.GraphHopper createGraphhopperInstance()  
java.lang.String getGraphFilesPath()  
java.lang.String getPathFindingAlgorithm()  
java.lang.String getRouteCacheId()  
RoutingMethod getRoutingMethod()  
void setPathFindingAlgorithm​(java.lang.String pathFindingAlgorithm)  
void setRoutingMethod​(RoutingMethod routingMethod)  
Modifier and Type Method Description

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, getLength, getPathData, getPathData, getPositionAtOffset, getRoute, getRoute, getRoute, getRoute

Field Detail

anylogicRouteCache

public static final java.lang.String anylogicRouteCache
See Also:
Constant Field Values

Constructor Detail

GraphHopperRouteProvider

public GraphHopperRouteProvider​(java.lang.String graphFilesPath,
                                java.lang.String pathFindingAlgorithm,
                                RoutingMethod routingMethod)

Method Detail

createGraphhopperInstance

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

getGraphFilesPath

@AnyLogicInternalAPI
public java.lang.String getGraphFilesPath()

getRoutingMethod

@AnyLogicInternalAPI
public RoutingMethod getRoutingMethod()

setRoutingMethod

@AnyLogicInternalAPI
public void setRoutingMethod​(RoutingMethod routingMethod)

getPathFindingAlgorithm

@AnyLogicInternalAPI
public java.lang.String getPathFindingAlgorithm()

setPathFindingAlgorithm

@AnyLogicInternalAPI
public void setPathFindingAlgorithm​(java.lang.String pathFindingAlgorithm)

close

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

getRouteCacheId

@AnyLogicInternalAPI
public java.lang.String getRouteCacheId()
Specified by:
getRouteCacheId in class AbstractGISRouteProviderWithCache
How can we improve this article?