Traffic Incidents Within a Polygon in DATEX II

To request traffic incidents within a polygon from the Traffic Data Service, send an HTTP POST request. This HTTP POST request must include the common HTTP Headers defined in Common Request Headers. You must also submit a simple JSON structure as part of the body of the POST request. The example below illustrates the JSON body for requesting a subset of your licensed traffic content using a polygon.

URL For Query

  http://data.traffic.api.here.com/datex/2.3/incident/content.xml

JSON Query

  {"loc":{"geo":{"polygon":[53.4535905,9.7156583,53.5907285,9.6812528,53.6593627,9.7598382,53.7352866,9.9748728,53.7660338,10.1214873,53.6310878,10.2125838,53.5428968,10.182479,53.4568498,10.2970338,53.3958135,10.1985088,53.4298369,9.9193548,53.4615054,9.7528007]}},"incident":{}}

This JSON body requests a subset of all traffic information in licensed traffic content using a polygon. For more information about polygons, see Apply a Polygon Filter for Incidents.

results matching ""

    No results matching ""