Package com.anylogic.engine.gis
- java.lang.Object
- com.anylogic.engine.gis.AbstractGISRouteFinder
- All Implemented Interfaces:
IGISRouteFinder
- Direct Known Subclasses:
AnyLogicOnlineRouteFinder
,BRouterOSMRouteFinder
,GISStraightRouteFinder
,GraphHopperRouteFinder
,YoursOSMRouteFinder
@AnyLogicInternalAPI public abstract class AbstractGISRouteFinder extends Object implements IGISRouteFinder
This class is internal and shouldn't be called by user.
it may be removed/renamed in future.
it may be removed/renamed in future.
- Author:
- AnyLogic North America, LLC https://anylogic.com
Constructor | Description |
---|---|
AbstractGISRouteFinder() |
Modifier and Type | Method | Description |
---|---|---|
abstract GISResult<double[]> | getRoute |
Returns curve obtained "as is" from route provider, without generalization
|
void | registerDistanceCache |
public AbstractGISRouteFinder()
public abstract GISResult<double[]> getRoute(double[] latLonPoints)
Returns curve obtained "as is" from route provider, without generalization
- Specified by:
getRoute
in interfaceIGISRouteFinder
- Parameters:
latLonPoints
- (lat, lon) pairs representing, the start, then optional intermediate, and the end points. Returns array of (lat, lon) pairs of resulting route curve, after all the points there is a number with the total distance.- Returns:
- see above, or empty optional if route not found, or
null
in case of server error
public void registerDistanceCache(BiConsumer<double[], GISResultDouble> distanceCachePut)
- Specified by:
registerDistanceCache
in interfaceIGISRouteFinder