VgIRoutingSolver will calculate a route between several waypoints. It is obtained from VgRoutingModule::VgIRoutingModule::getRoutingSolver()
- Version
- 1.1.6592
-
2.1.0 Updated documentations
VgRoutingModule::VgIRoutingSolver::VgIRoutingSolver |
( |
| ) |
|
|
inlineprotected |
virtual VgRoutingModule::VgIRoutingSolver::~VgIRoutingSolver |
( |
| ) |
|
|
inlinevirtual |
Computes a route given some parameters.
- Parameters
-
pParameters | Parameters to determine the route to be computed. A notify function will be called on callback within pParameters once the route has been computed. |
- Returns
- VgRoutingModule::VgIRouteRequest, NULL if request is handled synchronously.
- Note
- Currently, all requests are handled synchronously.
Computes a route given some parameters.
- Parameters
-
pParameters | Parameters to determine the route to be computed. |
- Returns
- VgRoutingModule::VgIRoute, A route object. If the route computation failed, the route object will be invalid.
{
{
printf(
"closest toilet is: %s\n",lClosestToiletNode->
getPoiID().c_str());
}
}
- Version
- 2.1.8
Gets the closest point on a routing edge to a given position.
Note the altitude/height of the position is used to determine the layer of the returned routing node. The routing node is searched within 200 meters from the position use getRoutingNode with options if you need a different threshold or if you want the closest access or node.
- Note
- The result of this function can only be used for the origin and final destination of a route. If you need to use intermediate waypoints using a position, you need to use getRoutingNode using the VgIRoutingNodeParameters and the option eRoutingNodeOptionsAnyNode or eRoutingNodeOptionsAccessOnly
Example:
...
VgEngine::VgPosition lMyPos;
std::string lLayerName = "0";
float lHeightMax;
float lHeightMin;
float lFloorHeight = 0.0;
{
lFloorHeight = ((lHeightMax + lHeightMin) / 2);
}
lMyPos.mZOrAltitude = lFloorHeight;
{
{
}
}
...
- Parameters
-
pPosition | A const reference on the position. |
- Returns
- A valid opaque pointer on a VgRoutingNode, or NULL if no node was found.
Gets the closest node or point on a routing edge to a given position with options.
The position's altitude/height will be used to determine the layer of the returned routing node.
- Note
- when using the default option: eRoutingNodeOptionsOnEdge, this can only be used for the origin and final destination of a route. If you need to use intermediate waypoints using a position, you need to use the option eRoutingNodeOptionsAnyNode or eRoutingNodeOptionsAccessOnly
Example:
...
VgEngine::VgPosition lMyPos;
{
...
- Parameters
-
pPosition | A const reference on the position. |
pParameters | parameters what node to obtain |
- Returns
- A valid opaque pointer on a VgRoutingNode, or NULL if no node was found.
- Version
- 2.1.4
Gets the virtual node associated with a given poi. Note: A poi may have several access nodes. The poi's virtual node represents all these access nodes when a route is requested. However the computed route will use only one of the access nodes and never the virtual node.
- Parameters
-
pPoiID | A const reference on a string containing the poi's ID. |
- Returns
- A valid VgIRoutingNode pointer, or NULL if no node was found.
The documentation for this interface was generated from the following file: