Dhara Patel
Dhara Patel

Reputation: 359

Error in key generation for draw Poly line in google map

 {
      "error_message": "Keyless access to Google Maps Platform is deprecated. Please use an API key with all your API calls to avoid service interruption. For further details please refer to http://g.co/dev/maps-no-account",
      "routes": [],
      "status": "OVER_QUERY_LIMIT"
 }

Not able to draw poly line in google map because of this error message and OVER_QUERY_LIMIT status.

Upvotes: 1

Views: 843

Answers (1)

Faiz Mir
Faiz Mir

Reputation: 609

Please Follow the step To Avoid getting error

Enable the Following Apis

1 Google map Sdk for android

2 Direction Api

3 Geocoding APi

4 GeoLocation Api

5 Places Api

6 Places Sdk For Android

And Please Create a billing Account It will not take any charges only take 2 INR to check if your not a robot

And please Pass Your Api Key to the URL (NOTE DONT MAKE YOUR API RESTRICTED)

String url = "https://maps.googleapis.com/maps/api/directions/"+output+"?"+parameters + "&key=" + MY_API_KEY

After Completing this Step It will Work..

Upvotes: 2

Related Questions