none
Request not authorized or over querylimit RRS feed

  • Question

  • Actually i want to find out the lat and long based Address using GoogleMaps.LocationServices API.

    code:

    using GoogleMaps.LocationServices;
    using System;
    
    namespace Coordination
    {
        public static class LocationService
        {
           
            public static Location Location (string address)
            {
                var locationService = new GoogleLocationService();
                var location = new Location();
                try
                {
                    var point = locationService.GetLatLongFromAddress(address);
    
                    if (point != null)
                    {
                        location.Latitude = point.Latitude.ToString();
                        location.Longitude = point.Longitude.ToString();
                    }
                }
                catch(Exception ex)
                {
                    Console.WriteLine(ex.Message);
                }
    
                return location;
            }
        } 
    }

    i had got the the error like "An unhandled exception of type 'System.Net.WebException' occurred in GoogleMaps.LocationServices.dll
    Additional information: Request Not Authorized or Over QueryLimit" in the following line in the code

    var point = locationService.GetLatLongFromAddress(address);
    Please help me

    Thank u


    • Moved by CoolDadTx Monday, December 10, 2018 3:52 PM Third party product
    Monday, December 10, 2018 6:59 AM

All replies

  • Additional information: Request Not Authorized or Over QueryLimit" 

    The message seems to be a message that was retuned from the Google site, which you'll have to address with people that support the site. 

    In addition,  MSDN does not support 3rd party solutions.

    You can try a Google forum.

    https://productforums.google.com/forum/#!forum/maps


    Monday, December 10, 2018 8:12 AM
  • Please post questions related to third party APIs and their errors in their forums. This isn't a C#-specific question.

    Michael Taylor http://www.michaeltaylorp3.net

    Monday, December 10, 2018 3:52 PM