>我已经成功地获得了在大规模矩阵网络服务(免费增值(上启动请求的令牌。我设法使用了运行状况,版本和配置文件服务,但是当我尝试使用矩阵服务时,我有以下响应:
{ "错误": "禁止", "error_description":"这些凭据不授权访问" }
我使用以下正文向邮递员提出请求:
{
"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"
]
}
在使用服务之前,我是否错过了身份验证步骤?
请使用生产环境,其中凭据有效且可以正常工作。生产环境不会在 url 中包含"cit"。另外,请回答评论问题。