Ejemplo n.º 1
0
        public static string TryTransformCoordinate(string item)
        {
            var coord = Format7Letter.Parse(item);

            if (coord == null)
            {
                return(item);
            }
            return(coord.To5LetterFormat() ?? coord.ToDecimalFormat());
        }
Ejemplo n.º 2
0
 private static LatLon ParseLatLon(string s)
 {
     return(Format5Letter.Parse(s) ??
            Format7Letter.Parse(s) ??
            FormatDecimal.Parse(s));
 }