Package com.anylogic.engine.gis
- All Superinterfaces:
IRouteProvider<Curve<GISMarkupSegment>>
,Serializable
- All Known Implementing Classes:
AbstractGISRouteProvider
,AbstractGISRouteProviderWithCache
,AnyLogicOnlineRouteProvider
,BRouterOSMRouteProvider
,GraphHopperRouteProvider
,JSONRouteProvider
,PlainGISRouteProvider
,YoursOSMRouteProvider
public interface IGISRouteProvider extends IRouteProvider<Curve<GISMarkupSegment>>
Basic interface for creation of routes in GIS space.
- Author:
- AnyLogic North America, LLC https://anylogic.com
Modifier and Type | Method | Description |
---|---|---|
default double | getDistance |
Calculates distance by route with intermediate points.
|
default double | getDistance |
Calculates distance by route between two specified points.
|
default double | getDistance |
Calculates distance by route with intermediate points.
|
default double | getDistance |
Creates a route from one point to another and calculates its length.
|
default double | getLength |
Retrieves length of the specified route.
|
default Curve<GISMarkupSegment> | getPathData |
Create route with intermediate points specified by pairs of latitude and longitude.
|
Curve<GISMarkupSegment> | getPathData |
Creates route from one point to another.
|
default Curve<GISMarkupSegment> | getPathData |
Create route with intermediate points.
|
default Curve<GISMarkupSegment> | getPathData |
Retrieves the route data an agent will use to calculate
the route length and determine its position on the route
by calling
IRouteProvider.getLength(IPathData) and
IRouteProvider.getPositionAtOffset(IPathData, double, Position) respectively. |
default Position | getPositionAtOffset |
Retrieves agent's position on the route.
|
default GISRoute | getRoute |
Returns unidirectional GISRoute created according to provider's settings.
|
default GISRoute | getRoute |
Returns GISRoute created according to provider's settings.
|
default GISRoute | getRoute |
Returns unidirectional GISRoute created according to provider's settings.
|
default GISRoute | getRoute |
Returns GISRoute created according to provider's settings.
|
Curve<GISMarkupSegment> getPathData(double startLat, double startLon, double endLat, double endLon)
Creates route from one point to another.
- Parameters:
startLat
- the latitude of the 1st point, measured in degrees (-90 ... (South) ... 0 ... (North) ... +90)startLon
- the longitude of the 1st point, measured in degrees (-180 ... (West) ... 0 ... (East) ... +180)endLat
- the latitude of the 2nd point, measured in degrees (-90 ... (South) ... 0 ... (North) ... +90)endLon
- the longitude of the 2nd point, measured in degrees (-180 ... (West) ... 0 ... (East) ... +180)- Returns:
- the route from one point to another
default double getDistance(double startLat, double startLon, double endLat, double endLon)
Calculates distance by route between two specified points.
- Parameters:
startLat
-startLon
-endLat
-endLon
-- Returns:
- the distance between two specified points, measured in meters.
@AnyLogicInternalAPI default double getDistance(Point... points)
Calculates distance by route with intermediate points.
- Parameters:
points
- the array of points, first point is the start point, last point is the end point- Returns:
- the distance of route which sequentially connects all specified points
@AnyLogicInternalAPI default double getDistance(double... latLonPoints)
Calculates 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
default Curve<GISMarkupSegment> getPathData(Point startPoint, Point endPoint, Curve<GISMarkupSegment> out)
Description copied from interface:
IRouteProvider
Retrieves the route data an agent will use to calculate
the route length and determine its position on the route
by calling
IRouteProvider.getLength(IPathData)
and
IRouteProvider.getPositionAtOffset(IPathData, double, Position)
respectively.- Specified by:
getPathData
in interfaceIRouteProvider<Curve<GISMarkupSegment>>
- Parameters:
startPoint
- Start point of the routeendPoint
- End point of the routeout
- This parameter was added to prevent creating additional instances of route data objects; could benull
- Returns:
- the route data to move an agent between specified points;
- See Also:
-
IPathData
@AnyLogicInternalAPI default Curve<GISMarkupSegment> getPathData(Point... points)
Create route with intermediate points.
- Parameters:
points
- the array of points, first point is the start point, last point is the end point- Returns:
- the curve which sequentially connects all specified points
@AnyLogicInternalAPI default Curve<GISMarkupSegment> getPathData(double... latLonPoints)
Create route with intermediate points specified by pairs of latitude and longitude.
- Parameters:
latLonPoints
- the array of coordinates ([latitude1, longitude1, latitude2, longitude2, ... latitudeN, longitudeN])- Returns:
- the curve which sequentially connects all specified points
default double getDistance(Point startPoint, Point endPoint)
Description copied from interface:
IRouteProvider
Creates a route from one point to another and calculates its length.
Uses route provider to create a route.
- Specified by:
getDistance
in interfaceIRouteProvider<Curve<GISMarkupSegment>>
- Parameters:
startPoint
- Start point of a routeendPoint
- End point of a route- Returns:
- length of a route from one point to another
default Position getPositionAtOffset(Curve<GISMarkupSegment> pathData, double offset, Position out)
Description copied from interface:
IRouteProvider
Retrieves agent's position on the route.
- Specified by:
getPositionAtOffset
in interfaceIRouteProvider<Curve<GISMarkupSegment>>
- Parameters:
pathData
- The route data of moving agentoffset
- The distance that agent should pass to reach the end of the routeout
- This parameter was added to prevent creating additional instances; could benull
- Returns:
- Agent's position on the route
- See Also:
-
Position
IPathData
default double getLength(Curve<GISMarkupSegment> curve)
Description copied from interface:
IRouteProvider
Retrieves length of the specified route.
- Specified by:
getLength
in interfaceIRouteProvider<Curve<GISMarkupSegment>>
- Parameters:
curve
- the route data- Returns:
- length of the specified route
default GISRoute getRoute(ShapeGISMap map, GISPoint start, GISPoint end, boolean bidirectional)
Returns GISRoute created according to provider's settings.
- Parameters:
map
-start
-end
-bidirectional
-
default GISRoute getRoute(ShapeGISMap map, GISPoint start, GISPoint end)
Returns unidirectional GISRoute created according to provider's settings.
- Parameters:
map
-start
-end
-
default GISRoute getRoute(ShapeGISMap map, double startLat, double startLon, double endLat, double endLon, boolean bidirectional)
Returns GISRoute created according to provider's settings.
- Parameters:
map
-startLat
-startLon
-endLat
-endLon
-bidirectional
-
default GISRoute getRoute(ShapeGISMap map, double startLat, double startLon, double endLat, double endLon)
Returns unidirectional GISRoute created according to provider's settings.
- Parameters:
map
-startLat
-startLon
-endLat
-endLon
-