public static void DirectGeocoding(int inX, int inY, int inMaxTime) { LONGPOSITION lp = new LONGPOSITION(inX, inY); string strAddress = ""; SRoadInfo sri = new SRoadInfo(); int ret = CApplicationAPI.GetLocationInfo(out _mySError, lp, out strAddress, out sri, inMaxTime); O("GetLocationInfo returns: " + ret + ", errorcode: " + MySError.nCode.ToString()); if (ret == 1) { O("lRoadOffset: " + sri.lRoadOffset.ToString()); O("OnroadPosition: X:" + sri.OnroadPosition.lX.ToString() + " Y: " + sri.OnroadPosition.lY.ToString()); O("OffroadDistance:" + sri.dwOffroadDistance); O("IsCongestionCharge: " + sri.IsCongestionCharge.ToString()); O("IsFerry: " + sri.IsFerry.ToString()); O("IsoCode: " + sri.IsoCode.ToString()); O("IsPaved: " + sri.IsPaved.ToString()); O("IsProhibited: " + sri.IsProhibited.ToString()); O("IsTollRoad: " + sri.IsTollRoad.ToString()); O("IsTunnel: " + sri.IsTunnel.ToString()); O("IsUrban: " + sri.IsUrban.ToString()); O("RoadClass: " + sri.RoadClass.ToString()); O("SpeedCategory: " + sri.SpeedCategory.ToString()); O("SpeedRestriction: " + sri.SpeedRestriction.ToString()); O("strAddress: " + strAddress); } int ret2 = CApplicationAPI.ShowCoordinatesOnMap(out _mySError, lp, 2, true, 0); O("ShowCoordinatesOnMap returns: " + ret2.ToString()); }