Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Google Maps Platform server rejected your request. #1

Open
jrvilda opened this issue Aug 28, 2019 · 0 comments
Open

The Google Maps Platform server rejected your request. #1

jrvilda opened this issue Aug 28, 2019 · 0 comments

Comments

@jrvilda
Copy link

jrvilda commented Aug 28, 2019

execution error:

urllib.error.HTTPError: HTTP Error 403: Forbidden

The url has no value anymore, you need to add key.

def getUrlStaticMap(self, center):
url = "http://maps.google.com/maps/api/staticmap?"
if center != None:
url += "center=%s&"%center
url += "size=%dx%d&"%(self.SIZE[0], self.SIZE[1])
url += "zoom=%d&"%self.zoom
url += "maptype=%s&"%self.maptype
url += "sensor=false"
return url

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant