谷歌地图api http错误

时间:2016-05-12 09:23:21

标签: python api google-maps

我正在尝试使用windows powershell

学习在python上运行googlemaps api

import statements

import googlemaps
from googlemaps import Client

mapService = Client(you_key,your_client_id,your_client_secret)
directions = mapService.directions('Texarkana','Atlanta')

for step in directions['Directions']['Routes'][0]['Steps']:
        print (step['descriptionHtml'])

这是我正在使用的代码,我有来自谷歌开发者控制台的api密钥,客户端ID和秘密

我一直在收到错误

  

googlemaps.exceptions.HTTPError:HTTPError:403

它不是403禁止的错误,而不是我能够找到的东西。 请有人帮助我。谢谢

0 个答案:

没有答案