【问题标题】:Cannot use large matrix scale service : 403 Forbidden message - These credentials do not authorize access无法使用大型矩阵规模服务:403 禁止消息 - 这些凭据未授权访问
【发布时间】:2019-12-17 08:37:12
【问题描述】:

我已成功获得令牌以在大规模矩阵 Web 服务(免费增值)上启动请求。我设法使用了健康、版本和配置文件服务,但是当我尝试使用矩阵服务时,我得到以下响应:

{ “错误”:“禁止”, "error_description": "这些凭据不授权访问" }

我对 Postman 的请求使用以下正文:

    {
      "origins": [
        {
          "lat": 52.53787,
          "lng": 13.40896
        },
        {
          "lat": 52.52387,
          "lng": 13.70346
        }
      ],
      "destinations": [
        {
          "lat": 52.53787,
          "lng": 13.40896
       }
      ],
  "regionDefinition": {
    "type": "circle",
    "center": {
      "lat": 52.53787,
      "lng": 13.40896
    },
    "radius": 10000
  },
  "profile": "carFast",
  "departureTime": "string",
  "routingMode": "fast",
  "transportMode": "car",
  "avoid": {
    "features": [
      "tollRoad"
    ],
    "areas": [
      {
        "type": "string",
        "north": -90,
        "south": -90,
        "west": -180,
        "east": -180
      }
    ]
  },
  "truckOptions": {
    "shippedHazardousGoods": [
      "explosive"
    ],
    "grossWeight": 0,
    "weightPerAxle": 0,
    "height": 0,
    "width": 0,
    "length": 0,
    "tunnelCategory": "B",
    "weightLimit": 0
  },
  "matrixAttributes": [
    "travelTimes"
  ]
}

我在使用服务之前是否错过了验证步骤?

【问题讨论】:

  • 你能分享你通过的网址吗?您是否使用正确的应用程序 ID、应用程序代码?您还使用正确的凭据吗?是否会导致其他 API 的响应?
  • 我打开了一张支持票,显然,大型矩阵路由 API 不适用于免费增值凭证。他们说应该联系 Here Credentials 团队以获取我的客户 AppId for Large Matrix Routing API。至此,已经完成,我可以完美使用该服务了。
  • 根据常见问题解答developer.here.com/faqs: 8. 还有哪些 HERE 定位服务限制适用于我的免费增值或专业计划?排除以下功能。如果您对以下一项或多项感兴趣,请联系我们: HERE SDK 中的电子地平线(高级版)地理可视化 REST API(包括通过 JavaScript 进行地理可视化)跟踪 REST API。如需免费试用,请转到tracking.here.com 并选择“试用我们的应用程序”。广告数据服务大规模矩阵路由 Live Sense SDK Beta

标签: matrix here-api


【解决方案1】:

请使用凭证有效且可以工作的生产环境。生产环境不会在 url 中包含“cit”。也请回复评论问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-10-13
    • 1970-01-01
    • 2013-05-15
    • 2022-11-07
    • 2022-10-05
    相关资源
    最近更新 更多