我使用https://maps.googleapis.com/maps/api/geocode/json?链接服务器密钥和用户IP以查找任何地址的纬度和经度,当我尝试我发现错误为
我有一个来自谷歌的服务器访问密钥,我已将我的服务器的IP地址放在他们的白名单中.
我试图通过PHP CURL访问的URL是:
结果我得到:
Array ([error_message] => This IP, site or mobile application is not authorized to use this API key. [results] => Array ( ) [status] => REQUEST_DENIED)
Run Code Online (Sandbox Code Playgroud)
有什么我需要配置.地理编码api也已打开.
我已经阅读了你的答案. 用于地理编码的Maps API密钥不再有效?
目前我正在尝试这样做:https: //maps.google.com/maps/api/geocode/json?address = n&_nsor = true&key = apikeygoeshere
给我错误:
此API项目无权使用此API.
请建议我如何完成我的应用程序.我正在为我的App搜索位置.我可以稍后购买商业计划但是现在我需要测试开发.我有以下服务:Google Maps Coordinate API,Google Maps Engine API,Google Maps Geolocation API,Google Maps JavaScript API v3,适用于iOS的Google Maps SDK,Places API.