MapQuest API密钥不再起作用 [英] MapQuest API key no longer working

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

问题描述

我们使用MapQuest API密钥已有数年了,但是在过去的24小时内某个时刻,地图已停止工作,并且我们收到一个错误消息:此密钥未经此服务的授权."

We have been using a MapQuest API key for a few years now but at some point in the last 24hrs or so the maps have stopped working and we are getting an error: "This key is not authorized for this service."

我登录后,似乎我们的旧密钥已被删除,并自动为新的Open Maps API生成了一个新密钥.

I logged in and it appeared our old key was removed and automatically generated a new key for the new Open Maps API.

此后,我已经等待了一个多小时,但是这个新的API密钥仍在显示此错误消息.

I have since waited over an hour and still this new API key is giving this error message.

有人知道这个故事是什么吗?

Does anyone know what the story is?

推荐答案

似乎他们已经更改了其API的URL,并且未能保持旧版本的API正常运行. -即使在AppKey管理器中,他们仍然引用旧的URL,但在新的SDK文档中,API URL已更改为新的子域.

It seems like they have changed the URL for their API and failed to keep the old one operational. -Even in the AppKey manager they still reference the old URL yet looking in the new SDK documentation the API url has changed to a new subdomain.

为解决我的问题,我将MapQuest Javascript库的URL从http(s)://mapquestapi.com/更改为http(s)://open.mapquestapi.com/

To resolve my issue, I changed the URL for the MapQuest Javascript library from http(s)://mapquestapi.com/ to http(s)://open.mapquestapi.com/

您可以使用http://https://,具体取决于您是希望性能还是安全性.

You can use either http:// or https:// depending on whether you prefer performance or security.

至少对于他们的Javascript SDK,最终结果应如下所示:

The end result, at least for their Javascript SDK, should look something like this:

<script src="https://open.mapquestapi.com/sdk/js/v7.2.s/mqa.toolkit.js?key=<%= APIKey %>" type="text/javascript"></script>

我还需要使用新的API密钥,该密钥对我非常友好,以取代旧的API密钥.似乎他们没有拉过所有旧的API密钥,只是为了响应许可更改将新的API密钥发布给所有人.

I also needed to use the new API key that was so kindly 'given' to me to replace the old one. Seems like they didn't pull all the old API keys accross and simply issued new ones to everone in response to their licensing changes.

这篇关于MapQuest API密钥不再起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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