public static Collection <GeocodeMatch> GetGeocodeMatches(double longitude, double latitude) { var match = OpenStreetGeocodeHelper.ReverseGeocodeAsync(longitude, latitude).Result; var result = new Collection <GeocodeMatch>(); if (match != null) { result.Add(GetGeocodeMatch(match)); } return(result); }
public static Collection <GeocodeMatch> GetGeocodeMatches(string searchAddress) { var matches = OpenStreetGeocodeHelper.GeocodeAsync(searchAddress).Result; return(GetGeocodeMatches(matches)); }