Int Makepoivisible( Epoitypecode Apoiid, Int Avisibility); Int Addpoi( Lpctstr Afilename, Long Alongitude, Long Alatitude, Lpctstr Aname, Lpctstr Anid) - TomTom Navigator SDK Installation And Use Manual

Version 3.0 build 193
Table of Contents

Advertisement

EGpsStatus status;
TTTnLocationV01 loc;
INT error = CTomTomNavigatorCom::GetCurrentPositionV01(status, loc);
if (error)
{
::AfxMessageBox(TEXT("Failed to get the current location"));
}
else
{
if (status >= 0 && loc.iSpeedKMh > 120)
{
::AfxMessageBox(TEXT("You are driving too fast!"));
}
}

6.2.18. INT MakePoiVisible( EPoiTypeCode aPoiID, INT aVisibility)

Command Parameters:
• EPoiTypeCode aPoiID: POI unique type identifier
• INT aVisibility: whether to show or hide this POI type on the map
Returns: 0 if successful, non−zero value otherwise.
Supported Since: TTN 1.42
Enable or disable displaying a specific POI type.
6.2.19. INT AddPoi( LPCTSTR aFilename, long aLongitude, long
aLatitude, LPCTSTR aName, LPCTSTR anId)
Command Parameters:
• LPCTSTR aFilename: name of the POI category
• long aLongitude: longitude specified in WGS84 format (in millionths of degree)
• long aLatitude: latitude specified in WGS84 format (in millionths of degree)
• LPCTSTR aName: name of the POI
• LPCTSTR anId: optional external identifier of the POI
Returns: 0 if successful, non−zero value otherwise.
Supported Since: TTN 1.51
Add a point of interest to the .OV2 file specified by the POI category argument. The point of interest
will have the name and co−ordinates given by the corresponding arguments. An external identifier string
can also be attached to the point of interest.
Example:
The following example invocation call demonstrates how to create a new point of interest:
INT error = CTomTomNavigatorCom::AddPoi(_T("ATM"), 4749620, 52374810,
if (error)
{
::AfxMessageBox(TEXT("Failed to create the point of interest"));
}
See Also: DeleteClosestPoi, DeleteAllPoi, MakeUserPoiVisible, MoveClosestPoi
6. Communicating with TomTom Navigator from C++
_T("Postbank"), _T(""));
32

Advertisement

Table of Contents
loading

Table of Contents