none
关于Bing地图的Local Insights接口问题 RRS feed

  • 问题

  • 我的参数:

    http://dev.virtualearth.net/REST/v1/Routes/LocalInsights/?waypoint=51.5131988525391,-0.0776999965310097&maxDistance=50&distanceUnit=mile&type=Hospitals&optimize=distance&key={BingMapsAPIKey}&o=xml


    提示如下:

    StatusCode:401

    StatusDescription:Your current purchased package does not include this service.

    AuthenticationResultCode:NotAuthorized

    ErrorDetails:Access was denied. You may have entered your credentials incorrectly, or you might not have access to the requested resource or operation.

    是我的参数错误,还是没有权限? 我需要如何开通权限?

    请大神指导,非常感谢!

    2019年2月20日 0:04

全部回复

  • 你好,

    从你的url来看,你并没有输入你的Bing Map的API key。

    我建议你可以参照如下步骤:

    1.您需要拥有Microsoft帐户。 如果您没有,请按照页面上的步骤创建一个。

    2. 在"My account" 菜单,点击 "Create or view keys"

    3.单击链接以创建新密钥

    4.将“应用程序类型”设置为公共网站。 应用程序URL是可选的。

    5.选择密钥并复制它


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    2019年2月21日 3:29
  • 实际测试的时候是有填写key的
    2019年2月21日 22:55
  • 你好,

    建议你确认一下你的API key有没有过期。

    其次如果你的api key还是没有用。

    我建议你可以重新申请一个免费的BING map api key再测试。

    如果你遇到问题,我建议你可以把问题发表在以下论坛, 因为中文论坛中没有必应地图,所以只能发表在英文论坛上了。

    https://social.msdn.microsoft.com/Forums/en-US/home?category=bingmaps


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    2019年2月25日 3:07