|
CartoType API
|
#include <cartotype_router.h>
Public Member Functions | |
| void | Clear () |
| CT_IMPORT TResult | ReadFromXml (MInputStream &aInput, const CMapDataBase *aMapDataBase) |
| CT_IMPORT TResult | WriteAsXml (MOutputStream &aOutput, const CMapDataBase *aMapDataBase) const |
| CT_IMPORT void | GetNearestSegment (const TPoint &aPoint, TNearestSegmentInfo &aInfo) const |
| CT_IMPORT TResult | Append (const CRoute &aRoute) |
Public Attributes | |
| CPointerArray< CRouteSegment > | iRouteSegment |
| int32 | iDistance |
| int32 | iCost |
| CContour | iPath |
Information about an entire route.
| CT_EXPORT void CRoute::GetNearestSegment | ( | const TPoint & | aPoint, |
| TNearestSegmentInfo & | aInfo | ||
| ) | const |
Get information about the nearest route segment to a point given in map coordinates.
| CT_EXPORT TResult CRoute::ReadFromXml | ( | MInputStream & | aInput, |
| const CMapDataBase * | aMapDataBase | ||
| ) |
Read a route from an XML <CartoTypeRoute> element. If aMapDataBase is non-null, use its projection and point format to project the points from latitude and longitude.
| CT_EXPORT TResult CRoute::WriteAsXml | ( | MOutputStream & | aOutput, |
| const CMapDataBase * | aMapDataBase | ||
| ) | const |
Write a route as an XML <CartoTypeRoute> element. If aMapDataBase is non-null, use its projection and point format to inverse-project the points back to latitude and longitude.
The cost of the route in arbitrary units.
The distance of the route in map units (usually metres or 64ths of metres).
The path along the entire route in map units (usually metres or 64ths of metres).
An array of route segments representing the route.
1.7.5.1