当我包含key = my_api_key时,request_denied [英] request_denied when i include key=my_api_key
问题描述
该网址将起作用。但是,如果我包含我的密钥:
http://maps.googleapis.com/maps/api/geocode/xml?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&sensor = false& key = abc123
我得到请求被拒绝(我用我的实际密钥替换abc123)。几小时前我刚刚要求钥匙。我还为我的域打开了地图api v2和v3。即使在这两个我仍然得到request_denied。有人知道为什么它不接受我的API密钥吗? 解决方案
地理编码API不需要密钥。仅在需要/可用的位置使用密钥(用于 API控制台中列出的服务)
That url will work. However, if i include my key: http://maps.googleapis.com/maps/api/geocode/xml?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&sensor=false&key=abc123
I get request denied (i replace abc123 with my actual key). I just requested the key a few hours ago. I also turned on the maps api v2 and v3 for my domain. Even with both on i still get request_denied. Does anyone know why it doesn't accept my api key?
The geocoding-API doesn't require a key. Use the key only where it's needed/available(for the services listed in the API-console)
这篇关于当我包含key = my_api_key时,request_denied的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!