用于地理编码的地图API密钥无效 [英] Maps API keys for geocoding not working

查看:894
本文介绍了用于地理编码的地图API密钥无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已阅读你的回答。
Google地图API密钥无法再使用地理编码?

I have read your answer on this. Maps API keys for geocoding not working anymore?

目前我正在尝试:
https://maps.google.com/maps/api/geocode/json?address=n&sensor=true&key=apikeygoeshere

给我错误:

Giving me error:


此API项目无权使用这个API。

This API project is not authorized to use this API.

请建议我如何完成我的应用程序。我正在寻找我的应用程序的位置。我可以稍后购买商业计划,但现在我需要测试开发。
我在以下服务上提供以下服务:
Google地图协调中心API,Google地图引擎API,Google地图地理定位API,Google Maps JavaScript API v3,适用于iOS的Google地图SDK,Places API。

Please suggest how can I complete my app. I am searching locations for my App.I can buy business plan later but for now I need to test for development. I have following services on: Google Maps Coordinate API, Google Maps Engine API, Google Maps Geolocation API, Google Maps JavaScript API v3, Google Maps SDK for iOS, Places API.

推荐答案

当您在Google地图搜索中放置您的位置(首都地区足球联赛)时,如果Google找到正确的地理编码,会在地图中绘制位置,但如果它没有为搜索到的位置找到适当的地理编码,因此它会在下拉菜单中显示更正位置的建议。当您从下拉列表中选择任何位置时 - 它具有正确的经纬度(地理编码),因此它会在地图上正确绘制。


因此,您不应在搜索中使用地理编码,而应打开建议下拉菜单,当点击任何建议的位置时,您就可以在地图上绘制正确的地理编码。

When you put your location (Capital Area Soccer League) in google map search, google plots the location in the map if it finds a correct geocodes but if it does not finds proper geocodes for the searched location then it shows suggestions of corrects locations in the dropdown. When you choose any of the locations from the dropdown - it has the correct lat long (geocodes) so it plots that in the map correctly.

So you should not use geocodes in the search rather open up a suggestions dropdown and when click on any of the suggested location then you have correct geocodes to plot in the map.

这篇关于用于地理编码的地图API密钥无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆