【问题标题】:Google Maps API-Key in gmaps4railsgmaps4rails 中的 Google Maps API-Key
【发布时间】:2011-02-18 15:00:09
【问题描述】:

为什么我不必在gmaps4rails 中提供我自己的 gmaps-api-key?

【问题讨论】:

    标签: ruby-on-rails ruby ruby-on-rails-3 google-maps gmaps4rails


    【解决方案1】:

    实际上,您不需要 API 密钥,因为那里使用了 Google Maps Javascript API V3

    只有 Google maps Javascript V2 需要 api-key,现在已弃用。

    【讨论】:

    • 我知道这是一个老问题。 . .但是我们可以在 gmaps4rails 中使用 API 密钥吗?我想跟踪我的使用情况并了解我是否接近免费 API 限制。
    • FWIW 早期评论中的链接已过时,因为它引用了主分支。当它仍然适用时,v2.0pre 分支的更新链接是here。我相信最新版本的 gmaps4rails 会有所不同。
    • 如果有人仍在使用 1.x 版本,这是指向包含 provider_key 的源代码的正确链接:github.com/apneadiving/Google-Maps-for-Rails/blob/1.x/lib/…
    猜你喜欢
    • 2011-11-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-12-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多