public static Position ReadPosition() { double lon = GpsCoordinateParser.ToDouble(Console.ReadLine()); double lat = GpsCoordinateParser.ToDouble(Console.ReadLine()); return(new Position(lon, lat)); }
private Defibrillator(string data) { var pieces = data.Split(DATA_SEPARATOR); var position = new Position(GpsCoordinateParser.ToDouble(pieces[4]), GpsCoordinateParser.ToDouble(pieces[5])); Id = int.Parse(pieces[0]); Name = pieces[1]; Address = pieces[2]; Phone = pieces[3]; Position = position; }