/// <summary> /// Get information about cities that matches the search string. /// </summary> /// <param name="searchString">String that city name must match.</param> /// <returns>Information about cities.</returns> public static CityList GetCitiesBySearchString(String searchString) { CityList cities; cities = new CityList(); foreach (WebCity webCity in WebServiceClient.GetCitiesBySearchString(searchString)) { cities.Add(new City(webCity.Name, webCity.County, webCity.Municipality, webCity.Parish, webCity.XCoordinate, webCity.YCoordinate)); } return(cities); }