【问题标题】:ios Google Geocoding APIios谷歌地理编码API
【发布时间】:2011-12-20 14:16:30
【问题描述】:

我在 iPhone 项目中运行“http://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&sensor=true”以获得"1600 Amphitheatre Parkway, Mountain View, CA" 的坐标。 但我得到了回应:

“REQUEST_DENIED”

我没有找到发生此错误的原因。 请帮我。 谢谢。

【问题讨论】:

  • 为我工作。检查文档以了解可能的原因。也许你在太短的时间内提出了太多的请求。

标签: iphone ios google-maps


【解决方案1】:
They are different versions available
Address for geocoding -> ”http://maps.googleapis.com/maps/api/geocode/json?address="
"https://maps.googleapis.com/maps/api/geocode/json?address=" // here you put your address then add the key
"https://maps.googleapis.com/maps/api/geocode/json?sensor=false&address=" // no need for key just add the address
for any address lookup
"https://maps.googleapis.com/maps/api/place/autocomplete/json?input="

【讨论】:

    【解决方案2】:

    阅读此tutorial,它非常有帮助...希望它可以帮助您

    【讨论】:

    • 当我点击 textField 并希望在 textField 下方显示结果时如何搜索 Google 地方信息。我正在使用 Swift 3.0 版本。有人可以帮我@PTBG
    • 这不是答案@PTBG
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-08-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-07-27
    相关资源
    最近更新 更多