예제 #1
0
        public static GeoDecodingServiceWrp GeoDecoding(LocationXY loc)
        {
            GeocodingService geSv = new GeocodingService();
            JObject          jObj = geSv.DeGeocoding(loc.ToString());

            GeoDecodingServiceWrp rslt = jObj.ToObject <GeoDecodingServiceWrp>();

            return(rslt);
        }
        public static CoordinateTransWrp CoordinateTransform(LocationXY loc, MapCoordinateType from, MapCoordinateType to)
        {
            CoordinateTransService cTrSv = new CoordinateTransService();
            JObject cdRslt =
                cTrSv.CoordinateTransform(loc.GetStrX(), loc.GetStrY(), (int)from, (int)to);

            CoordinateTransWrp rslt = cdRslt.ToObject <CoordinateTransWrp>();

            return(rslt);
        }
 public static LocationXY Transform(LocationXY loc, MapCoordinateType from, MapCoordinateType to)
 {
     return(CoordinateTransform(loc, from, to).result[0]);
 }