Interface IRoutingModule
-
- All Known Implementing Classes:
NavigationModule
public interface IRoutingModule
Interface to access the central navigation component from road side units.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RoutingResponse
calculateRoutes(RoutingPosition sourcePosition, RoutingPosition targetPosition, RoutingParameters routingParameters)
Calculates one or more routes from the position of the vehicle to the given target location.INode
getClosestNode(GeoPoint geoPoint)
Returns the node object, which is closest to the givenGeoPoint
.IRoadPosition
getClosestRoadPosition(GeoPoint geoPoint)
Returns the road position, which is closest to the givenGeoPoint
.IRoadPosition
getClosestRoadPosition(GeoPoint geoPoint, double heading)
Returns the road position, which is closest to the givenGeoPoint
.IConnection
getConnection(String connection)
Returns data for the specified connection id.INode
getNode(String nodeId)
Returns the node object identified by the given nodeId.
-
-
-
Method Detail
-
calculateRoutes
RoutingResponse calculateRoutes(RoutingPosition sourcePosition, RoutingPosition targetPosition, RoutingParameters routingParameters)
Calculates one or more routes from the position of the vehicle to the given target location.- Parameters:
sourcePosition
- The source position of the required route.targetPosition
- The target position of the required route.routingParameters
- Properties defining the way routes are calculated (e.g. number of routes, weighting).- Returns:
- The response including a set of routes towards the target.
-
getNode
INode getNode(String nodeId)
Returns the node object identified by the given nodeId.- Parameters:
nodeId
- The id of the requested node.- Returns:
- The node object identified by the given nodeId.
-
getConnection
IConnection getConnection(String connection)
Returns data for the specified connection id.- Parameters:
connection
- the id of the node- Returns:
- the
IConnection
containing data for the specified connection id.
-
getClosestNode
INode getClosestNode(GeoPoint geoPoint)
Returns the node object, which is closest to the givenGeoPoint
.- Parameters:
geoPoint
- The geographical location to search a node for.- Returns:
- The node object, which is closest to the given location.
-
getClosestRoadPosition
IRoadPosition getClosestRoadPosition(GeoPoint geoPoint)
Returns the road position, which is closest to the givenGeoPoint
.- Parameters:
geoPoint
- The geographical location to search a road position for.- Returns:
- The road position, which is closest to the given location.
-
getClosestRoadPosition
IRoadPosition getClosestRoadPosition(GeoPoint geoPoint, double heading)
Returns the road position, which is closest to the givenGeoPoint
. If two adjacent edges overlap, the heading will be used as a similarity measure.- Parameters:
geoPoint
- The geographical location to search a road position for.heading
- used as a measure of similarity if multiple edges match- Returns:
- The road position, which is closest to the given location.
-
-