示例#1
0
 public Coordinate(SimpleCoordinate c)
 {
     x              = c.x;
     y              = c.y;
     type           = c.type;
     visited        = false;
     positionObject = null;
     Heuristic      = 0;
 }
示例#2
0
        protected virtual Point GetPointFromJArray(JArray coordinateArray, bool isLegacyFormat)
        {
            if (coordinateArray == null)
            {
                return(null);
            }

            SimpleCoordinate coor = GetCoordinateFromJArray(coordinateArray, _isLegacyFormat);

            if (coor != null)
            {
                return(new Point(coor.Latitude, coor.Longitude, _isLegacyFormat));
            }

            return(null);
        }