How to Determine Which Traffic Table Is Used in Traffic API v7
Symptoms / Triggers
-------------------
Users may encounter the following scenarios when working with Traffic API v7:
Need to identify which Traffic Table is being used for a specific Traffic API v7 response.
Requirement to validate traffic coverage for a particular region or request.
Difficulty determining the underlying traffic table associated with returned traffic flow or incident data.
Need to troubleshoot differences in traffic results across regions, countries, or time periods
Quick Answer
To determine which Traffic Table is being used in a Traffic API v7 request, inspect the"tmc" object in the response JSON and locate the"tableId" field. The value of tableId identifies the specific traffic table associated with the requested location and time.
Step-by-Step Detailed Resolution
Step 1: Send a Traffic API v7 Request
Submit the desired request to Traffic API v7 and obtain the JSON response.
Step 2: Locate the TMC Section
Within the response JSON, navigate to the returned result and find the tmc object.
Example structure:
{<br /> "results": [ <br /> { <br /> "location": { <br /> "tmc": { <br /> "extendedCountryCode": "E1", <br /> "ebuCountryCode": "C", <br /> **"tableId": 7,** <br /> "locationId": 45244 <br /> } <br /> } <br /> } <br /> ] <br />}
Step 3: Interpret the Table ID
Review the value returned in tableId.
For example:
"tableId": 7
This indicates that Traffic Table 7 was used to provide traffic information for the requested location and timestamp.
Step 4: Verify Traffic Coverage Information
To understand coverage, table mappings, and regional applicability, consult the official Traffic API v7 Coverage Information documentation.
Success Criteria
The verification is successful when:
The response contains a tmc object.
A tableId value is present.
* The value can be correlated with traffic coverage documentation for the applicable region.
Related Links / Documentation
HERE Traffic API v7 Developer Guide - https://docs.here.com/traffic-api/docs/introduction-to-here-traffic-api-v7
Searchable Tags / Keywords
Traffic API v7, Traffic Table, tableId, TMC, Traffic Message Channel, Traffic Coverage, Traffic Flow API, HERE Traffic API, JSON Response, Coverage Information, Traffic Data Validation, tableId Lookup, Traffic Troubleshooting, API Response Analysis, EBU Country Code, Location ID, Traffic Table Mapping
Updated 3 days ago