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>>
,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
static java.lang.String |
anylogicRouteCache |
|
Modifier and Type | Field | Description |
---|
GraphHopperRouteProvider(java.lang.String graphFilesPath,
java.lang.String pathFindingAlgorithm,
RoutingMethod routingMethod) |
|
Constructor | Description |
---|
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 |
---|
getDistance, getPathData, getPathData, getPrecisionInMeters, isThrowError, setPrecisionInMeters, setRouteNotFoundBehavior, setThrowError
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDistance, getLength, getPathData, getPathData, getPositionAtOffset, getRoute, getRoute, getRoute, getRoute
public static final java.lang.String anylogicRouteCache
- See Also:
- Constant Field Values
public GraphHopperRouteProvider(java.lang.String graphFilesPath, java.lang.String pathFindingAlgorithm, RoutingMethod routingMethod)
@AnyLogicInternalAPI public static com.graphhopper.GraphHopper createGraphhopperInstance()
@AnyLogicInternalAPI public java.lang.String getGraphFilesPath()
@AnyLogicInternalAPI public RoutingMethod getRoutingMethod()
@AnyLogicInternalAPI public void setRoutingMethod(RoutingMethod routingMethod)
@AnyLogicInternalAPI public java.lang.String getPathFindingAlgorithm()
@AnyLogicInternalAPI public void setPathFindingAlgorithm(java.lang.String pathFindingAlgorithm)
@AnyLogicInternalAPI public void close()
Call com.graphhopper.GraphHopper.close() to release files.
@AnyLogicInternalAPI public java.lang.String getRouteCacheId()
- Specified by:
getRouteCacheId
in classAbstractGISRouteProviderWithCache
-
How can we improve this article?
-