Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vue.js/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Here api 这里以GB为单位绘制收费公路地图_Here Api - Fatal编程技术网

Here api 这里以GB为单位绘制收费公路地图

Here api 这里以GB为单位绘制收费公路地图,here-api,Here Api,我在应用程序中使用heremaps来计算收费公路。但在GB中,它的工作方式不同。见下图: [] 如您所见,对于GB以外的其他字段,有类似于name和tollSystemId的字段,而对于GB,只有adminId字段。你能解释一下原因吗?或者我应该如何处理GB通行费 以下是一个查询示例: 对于通行费金额,以下属性是可能的: "CurrencyAmount": { "type": "object", "properties": { "adminId": {

我在应用程序中使用heremaps来计算收费公路。但在GB中,它的工作方式不同。见下图:

[]

如您所见,对于GB以外的其他字段,有类似于nametollSystemId的字段,而对于GB,只有adminId字段。你能解释一下原因吗?或者我应该如何处理GB通行费

以下是一个查询示例:

对于通行费金额,以下属性是可能的:

"CurrencyAmount": {
      "type": "object",
      "properties": {
        "adminId": {
          "type": "string",
          "description": "country's admin place id"
        },
        "amountInTargetCurrency": {
          "type": "number",
          "format": "double"
        },
        "country": {
          "type": "string"
        },
        "languageCode": {
          "type": "string",
          "description": "Language code of toll system name"
        },
        "name": {
          "type": "string",
          "description": "Toll system name"
        },
        "tollSystemId": {
          "type": "string"
        }
      }
    }
因此,对于以GB为单位的查询,我们的数据库中只有
adminId
amountTargetCurrency
可用。因此,对于您的使用,您可以在尝试使用属性键的值之前检查属性键在响应中是否可用

关于你的问题,卡车经过三条收费公路(1条在法国,2条在英国)。每个收费公路的详细信息将在响应中返回。法国的详情如下:

            {
              "tollSystemId": "5171",
              "name": "SANEF",
              "languageCode": "ENG",
              "amountInTargetCurrency": 65.3
            }
对于英国,两条收费公路将返回此信息:

    {
      "adminId": "20248595",
      "amountInTargetCurrency": 2.25
    },
    {
      "adminId": "20287683",
      "amountInTargetCurrency": 2.25
    }

您可以在响应中看到每条收费公路的可用金额因此我们有英国的通行费信息。如果您进一步查看回复,您会发现总通行费成本为
69.8
,这是法国通行费和GB通行费的总和

您好,请您分享您正在向我们的端点进行的准确查询,以帮助重现问题。谢谢大家的支持,谢谢你们的回复。我已经用查询示例更新了我的问题。谢谢回答。这是否意味着您没有GB中的收费公路信息?或者GB有不同的计算方法?