Package com.anylogic.engine.gis
- java.lang.Object
- com.anylogic.engine.gis.AbstractGISRouteFinder
- com.anylogic.engine.gis.AnyLogicOnlineRouteFinder
- All Implemented Interfaces:
IGISRouteFinder
public class AnyLogicOnlineRouteFinder extends AbstractGISRouteFinder
AnyLogic online route provider
This class is internal and shouldn't be called by user.
it may be removed/renamed in future.
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 | Description |
---|---|
AnyLogicOnlineRouteFinder |
Modifier and Type | Method | Description |
---|---|---|
GISResultDouble | getDistance |
Returns the distance by route with intermediate points.
|
GISResult<double[]> | getRoute |
Returns curve obtained "as is" from route provider, without generalization
|
void | setUrlParamsEncoder |
public AnyLogicOnlineRouteFinder(RoutingMethod routingMethod, RouteProviderTransportType transportType)
@AnyLogicInternalAPI public void setUrlParamsEncoder(UnaryOperator<String> urlParamsEncoder)
public GISResult<double[]> getRoute(double[] latLonPoints)
Description copied from class:
AbstractGISRouteFinder
Returns curve obtained "as is" from route provider, without generalization
- Specified by:
getRoute
in interfaceIGISRouteFinder
- Specified by:
getRoute
in classAbstractGISRouteFinder
- 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 GISResultDouble getDistance(double[] latLonPoints)
Description copied from interface:
IGISRouteFinder
Returns the distance by route with intermediate points.
- Parameters:
latLonPoints
- the array of coordinates ([latitude1, longitude1, latitude2, longitude2, ... latitudeN, longitudeN])- Returns:
- the distance of route which sequentially connects all specified points,
empty optional if route not found, or
null
in case of server error