C# SDK

◆ AddPoi()

static int AddPoi ( out SError  Error,
ref SPoi  Poi,
Int32  MaxTime 
)
inlinestatic

The function adds user POI to custom category.

Parameters
ErrorAdditional error information returned from Drive.
PoiReference to instance of SPoi class which contains informations about POI to add.
MaxTimeMaximum time (in milliseconds) function can take. If MaxTime=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.

References SPoi.SizeOf(), and SError.SizeOf().