C# SDK

◆ GetRoute()

static int GetRoute ( out SError  Error,
Int32  nFormat,
Int32  nDetail,
out string  strRoute,
Int32  MaxTime 
)
inlinestatic

@summary Returns the route geometry of the currently calculated route in the json format.

Parameters
Erroradditional error information in case of error
nFormatrequested json format of the geometry to be retrieved, 0 - Sygic format, 1 - PTV format
nDetaillevel of detail, 1 - waypoints and road geometry points, other values reserved
strRoutereturned geometry in a json string
MaxTimemaximum time (in milliseconds) the function can take. If MaxTime=0 function execution is not time limited
Returns
1 if function call is successfull, other value otherwise
Remarks
See the documentation about JSON Route Import/Export object for the route geometry

References SError.SizeOf().