public static string GetCoordinatesFromListOfOffsetIds(string inPath) { StringBuilder s = new StringBuilder(""); if (File.Exists(inPath)) { LONGPOSITION lp = new LONGPOSITION(); string tmp = ""; string[] parameters = new string[2]; StreamReader sr = new StreamReader(inPath); while (!sr.EndOfStream) { tmp = sr.ReadLine(); parameters = tmp.Split(';'); CApplicationAPI.GetCoordinatesFromOffset( out _mySError, parameters[0], int.Parse(parameters[1]), out lp, 0); s.AppendLine(lp.lX.ToString() + ";" + lp.lY.ToString()); } sr.Close(); } return(s.ToString()); }
public static void GetCoordinatesFromOffset(string inIsoCode, int inRoadOffset, int inMaxTime) { LONGPOSITION lp = new LONGPOSITION(); int ret = CApplicationAPI.GetCoordinatesFromOffset(out _mySError, inIsoCode, inRoadOffset, out lp, inMaxTime); O("GetCoordinatesFromOffset returns: " + ret.ToString()); O("x=" + lp.lX.ToString() + ", y=" + lp.lY.ToString()); }