AnyLogic
Expand
Font size
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.
Author:
AnyLogic North America, LLC https://anylogic.com

Constructor Summary

ConstructorDescription
AbstractGISRouteFinder() 

Method Summary

Modifier and TypeMethodDescription
abstract GISResult<double[]>getRoute(double[] latLonPoints)
Returns curve obtained "as is" from route provider, without generalization
voidregisterDistanceCache(BiConsumer<double[],GISResultDouble> distanceCachePut) 

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods inherited from interface com.anylogic.engine.gis.IGISRouteFinder

getDistance

Constructor Details

AbstractGISRouteFinder

public AbstractGISRouteFinder()

Method Details

getRoute

public abstract GISResult<double[]> getRoute(double[] latLonPoints)
Returns curve obtained "as is" from route provider, without generalization
Specified by:
getRoute in interface IGISRouteFinder
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

registerDistanceCache

public void registerDistanceCache(BiConsumer<double[],GISResultDouble> distanceCachePut)
Specified by:
registerDistanceCache in interface IGISRouteFinder