sethwebster / GoogleMaps.LocationServices

A simple library (including Nuget Package) for Google Maps geolocation and reverse geolocation
http://nuget.org/List/Packages/GoogleMaps.LocationServices
44 stars 42 forks source link

exception from reversed address #36

Closed cissemy closed 4 years ago

cissemy commented 5 years ago

Hi, I am getting empty and exception from : var gls = new GoogleLocationService("AIzaSyAzXXP9EpudRef0ac4ggTt4tmhFQ_8fsc4"); try {

           AddressData reversedAddress = gls.GetAddressFromLatLang(40.7581764, -73.9830625);
           MessageBox.Show(reversedAddress.ToString());

            Directions d=  gls.GetDirections(new AddressData { Address = "777 8th ave", City = "New York", State = "NY", Zip = "10036" }, new AddressData { Address = "64 west 48 street", City = "New York", State = "NY", Zip = "10036" });
            MessageBox.Show(d.Distance.ToString());
        }
        catch (System.Net.WebException ex)
        {
            MessageBox.Show("Google Maps API Error {0}", ex.Message);
        }

Thanks

sethwebster commented 4 years ago

Not enough info to help.