Beispiel #1
0
        public async Task <IEnumerable <Address> > ReverseGeocodeAsync(Location location)
        {
            if (location == null)
            {
                throw new ArgumentNullException("location");
            }

            var f = new ReverseGeocodeRequest(key, location)
            {
                UseOSM = this.UseOSM
            };
            MapQuestResponse res = await Execute(f).ConfigureAwait(false);

            return(HandleSingleResponse(res));
        }
Beispiel #2
0
        public IEnumerable <Address> ReverseGeocode(Location location)
        {
            if (location == null)
            {
                throw new ArgumentNullException("location");
            }

            var f = new ReverseGeocodeRequest(key, location)
            {
                UseOSM = this.UseOSM
            };
            MapQuestResponse res = Execute(f);

            return(HandleSingleResponse(res));
        }
		public IEnumerable<Address> ReverseGeocode(Location location)
		{
			if (location == null)
				throw new ArgumentNullException ("location");

			var f = new ReverseGeocodeRequest(key, location) { UseOSM = this.UseOSM };
			MapQuestResponse res = Execute(f);
			return HandleSingleResponse(res);
		}