public static void GetNextInstruction(int inMaxTime) { SRouteInstruction instr = new SRouteInstruction(); int ret = CApplicationAPI.GetNextInstruction(out _mySError, out instr, inMaxTime); O("GetNextInstruction returns: " + ret); O("ExitIndex: " + instr.ExitIndex.ToString()); O("lDistanceToNextTurn: " + instr.lDistanceToNextTurn.ToString()); O("lNextTurnX: " + instr.lNextTurnX.ToString()); O("lNextTurnY: " + instr.lNextTurnY.ToString()); O("nInstruction: " + instr.nInstruction.ToString()); O("nRoundaboutExitIndex: " + instr.nRoundaboutExitIndex.ToString()); }
public static void GetNextInstruction(int inMaxTime, out string[] outArr) { SRouteInstruction outInstr = new SRouteInstruction(); int ret = CApplicationAPI.GetNextInstruction(out _mySError, out outInstr, inMaxTime); string[] arr = new string[6]; arr[0] = outInstr.ExitIndex.ToString(); arr[1] = outInstr.lDistanceToNextTurn.ToString(); arr[2] = outInstr.lNextTurnX.ToString(); arr[3] = outInstr.lNextTurnY.ToString(); arr[4] = outInstr.nInstruction.ToString(); arr[5] = outInstr.nRoundaboutExitIndex.ToString(); outArr = arr; }