Пример #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));
        }
Пример #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));
        }
Пример #3
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);
		}