Example #1
0
        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);
        }
Example #2
0
        public static Collection <GeocodeMatch> GetGeocodeMatches(string searchAddress)
        {
            var matches = OpenStreetGeocodeHelper.GeocodeAsync(searchAddress).Result;

            return(GetGeocodeMatches(matches));
        }