print(r.content.decode('UTF-8'))

When I’m executing this command, getting the following error.
Kindly help me to get the solution.

{
“error_message” : “You must use an API key to authenticate each request to Google Maps Platform APIs. For additional information, please refer to http://g.co/dev/maps-no-account”,
“results” : [],
“status” : “REQUEST_DENIED”
}

You need an API key. Otherwise it won’t work.

To get an API Key you have to go to this webpage https://cloud.google.com/maps-platform/#get-started and pick the products you need.