交通流量中响应变量的含义

时间:2019-12-18 16:02:06

标签: here-api

所以我正在使用here.developer api来获取给定区域的路况数据。我正在使用接近度来获取半径。我有使用请求使用python的api,并且我打印了数据。我对数据的含义感到困惑。例如,我明白了

{
  "RWS": [
    {
      "RW": [
        {
          "FIS": [
            {
              "FI": [
                {
                  "TMC": {
                    "PC": 6084,
                    "DE": "Johnson Ave/Kinderkamack Rd",
                    "QD": "+",
                    "LE": 0.94082
                  },
                  "SHP": [],
                  "CF": [
                    {
                      "TY": "TR",
                      "SP": 46.38,
                      "SU": 46.38,
                      "FF": 49.21,
                      "JF": 0.47912,
                      "CN": 0.99
                    }
                  ]
                },
                {
                  "TMC": {
                    "PC": 6083,
                    "DE": "CR-503/Hackensack Ave",
                    "QD": "+",
                    "LE": 0.43574
                  },
                  "SHP": [],
                  "CF": [
                    {
                      "TY": "TR",
                      "SP": 39.15,
                      "SU": 39.15,
                      "FF": 49.15,
                      "JF": 1.69619,
                      "CN": 0.99
                    }
                  ]
                },
                {
                  "TMC": {
                    "PC": 6082,
                    "DE": "River Rd",
                    "QD": "+",
                    "LE": 0.3682
                  },
                  "SHP": [],
                  "CF": [
                    {
                      "SSS": {
                        "SS": [
                          {
                            "LE": 0.13436,
                            "SP": 35.11,
                            "SU": 35.11,
                            "FF": 49.4,
                            "JF": 2.41044
                          },
                          {
                            "LE": 0.23383,
                            "SP": 23.14,
                            "SU": 23.14,
                            "FF": 49.09,
                            "JF": 5.21289
                          }
                        ]
                      },
                      "TY": "TR",
                      "SP": 24.57,
                      "SU": 24.57,
                      "FF": 49.21,
                      "JF": 3.85751,
                      "CN": 0.99
                    }
                  ]
                },
                {
                  "TMC": {
                    "PC": 6081,
                    "DE": "Teaneck Rd",
                    "QD": "+",
                    "LE": 1.47647
                  },
                  "SHP": [],
                  "CF": [
                    {
                      "SSS": {
                        "SS": [
                          {
                            "LE": 0.54181,
                            "SP": 13.99,
                            "SU": 13.99,
                            "FF": 49.09,
                            "JF": 8.45597
                          },
                          {
                            "LE": 0.12603,
                            "SP": 22,
                            "SU": 22,
                            "FF": 49.09,
                            "JF": 5.79388
                          },
                          {
                            "LE": 0.80862,
                            "SP": 32.08,
                            "SU": 32.08,
                            "FF": 49.28,
                            "JF": 2.90814
                          }
                        ]
                      },
                      "TY": "TR",
                      "SP": 19.33,
                      "SU": 19.33,
                      "FF": 49.21,
                      "JF": 6.23169,
                      "CN": 0.99
                    }
                  ]
                }
              ]
            }
          ],
          "mid": "0a507b9f-0c71-425a-93ba-9cb2d1e91c48",
          "LI": "120-00219",
          "DE": "RT-4",
          "PBT": "2019-12-18T15:57:25Z"
        },
        {
          "FIS": [
            {
              "FI": [
                {
                  "TMC": {
                    "PC": 6082,
                    "DE": "River Rd",
                    "QD": "-",
                    "LE": 1.43747
                  },
                  "SHP": [],
                  "CF": [
                    {
                      "TY": "TR",
                      "SP": 49.71,
                      "SU": 49.84,
                      "FF": 49.71,
                      "JF": 0,
                      "CN": 0.99
                    }
                  ]
                },
                {
                  "TMC": {
                    "PC": 6083,
                    "DE": "CR-503/Hackensack Ave",
                    "QD": "-",
                    "LE": 0.61971
                  },
                  "SHP": [],
                  "CF": [
                    {
                      "TY": "TR",
                      "SP": 49.71,
                      "SU": 51.04,
                      "FF": 49.21,
                      "JF": 0,
                      "CN": 0.99
                    }
                  ]
                },
                {
                  "TMC": {
                    "PC": 6084,
                    "DE": "Johnson Ave/Kinderkamack Rd",
                    "QD": "-",
                    "LE": 0.42619
                  },
                  "SHP": [],
                  "CF": [
                    {
                      "TY": "TR",
                      "SP": 49.71,
                      "SU": 51.02,
                      "FF": 49.09,
                      "JF": 0,
                      "CN": 0.99
                    }
                  ]
                }
              ]
            }
          ],
          "mid": "70f7c3fd-51b0-43ed-916c-65b510791154",
          "LI": "120+00219",
          "DE": "RT-4",
          "PBT": "2019-12-18T15:56:39Z"
        }

我不明白其中大多数意思是“ RWS”,“ FIS”,“ DE”,“ PC”,“ LE”,“ CF”,“ TY”,“ TR”,等等。我在哪里可以找到关于这一切的文档,因为我什么都没找到

1 个答案:

答案 0 :(得分:0)

TMCCodeType保留具有以下限制的typexs:string值:

Fixed length: 5 characters
Format: ECC+CCD+Table, where the following rules apply:

ECC is the Extended Country Code.
CCD is the TMC country code.
Table   is the defined TMC Table

您应该在文档的“元资源”下找到它,以下应提供必填信息

traffic.cit.api.here.com/traffic/6.0/xsd/flow.xsd?app_id=DemoAppId01082013GAL%20&app_code=AJKnXv84fjrb0KIHawS0Tg

developer.here.com/documentation/download/traffic_nlp/6.0.28.1/Traffic%20API%20v6.0.28.1%20Developer's%20Guide.pdf