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

            return(GetGeocodeMatches(matches));
        }