C# SDK

◆ GetPoiOnRoute()

static int GetPoiOnRoute ( out SError  Error,
int  nGroup,
int  nCategory,
int  minDriveTime,
int  maxDriveTime,
out SPoiOnRoute []  PoiArr,
Int32  MaxTime 
)
inlinestatic

The function returns list of POIs from selected category.

Parameters
ErrorAdditional error information returned from Drive.
PoiArrArray of SPoi which contains list of POIs after function execution.

GetPoiList fills address member of each PoiArr item (see SPoi class) with corresponding address.

Parameters
MaxTimeMaximum time (in milliseconds) function can take. If MaxTime=0 function execution is not time limited.
Returns
1 if successful, other value otherwise.



Possible error codes returned from Drive are:

  • 0 - Function not succeeded.
  • 1 - Function succeeded.
  • 2 - Drive not succeeded.
  • 3 - Function reached timeout.



References SError.SizeOf().