C++ SDK

◆ AddPoi()

static int CApplicationAPI::AddPoi ( LpError  lpError,
SPoi lpPoi,
DWORD  dwMaxTime = DEFAULT_MAX_TIME 
)
static

The function adds user POI to custom category.

Parameters
lpErrorAdditional error information returned from Drive.
lpPoiReference to instance of SPoi class which contains informations about POI to add.
dwMaxTimeMaximum time (in milliseconds) function can take. If dwMaxTime=0 function execution is not time limited.
Returns
1 if successful, other value otherwise.

To add POI to custom category fill in Poi members and call AddPoi function.

See Coordinates conversion section in TROUBLESHOOTING page.

Possible error codes returned from Drive are:

  • 0 - Function not succeeded.
  • 1 - Function succeeded.
  • 2 - Drive not succeeded.
  • 3 - Function reached timeout.
  • -2 - POI was not added because of invalid location syntax.