Package com.anylogic.engine.gis
- java.lang.Object
- com.anylogic.engine.gis.AbstractGISRouteFinder
- com.anylogic.engine.gis.YoursOSMRouteFinder
- All Implemented Interfaces:
IGISRouteFinder
@AnyLogicInternalAPI public class YoursOSMRouteFinder extends AbstractGISRouteFinder
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 |
---|---|
YoursOSMRouteFinder |
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
|
public YoursOSMRouteFinder(RouteProviderTransportType transportType, RoutingMethod routingMethod)
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