C# SDK

◆ AddStopOffPointsToFavorites()

static int AddStopOffPointsToFavorites ( out SError  Error,
ref SPoi  StopOffPoint,
Int32  MaxTime 
)
inlinestatic

The function adds user defined POI to Favorites category.

Parameters
ErrorAdditional error information returned from Drive.
StopOffPointReference 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 custom POI to Favorites category fill in StopOffPoint members and call AddStopOffPointsToFavorites function. It is not necessary to call SetCategory function becasue POI category will be set to Favorites automatically.

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.
  • -1 - POI was not added because of invalid location syntax.

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