The traffic object for retrieving markets, incidents and flows.
Retrieves traffic flow data. Refer to the Traffic Flow API for more information.
var services = new mqgl.Service('KEY');
services.traffic.flow({lng: -73.993411, lat: 40.731701}, 400, 400, 11)
.then(response => console.log(response));
The center point of the traffic flow.
The pixel width of the traffic flow.
The pixel height of the traffic flow.
The map zoom of the traffic flow.
A Promise containing a JSON object in the results.
Loading...
Retrieves traffic market data. Refer to the Traffic Markets API for more information.
var services = new mqgl.Service('KEY');
services.traffic.markets()
.then(response => console.log(response));
None
A Promise containing a JSON object in the results.
Loading...
Retrieves traffic incident data. Refer to the Traffic Incidents API for more information.
var services = new mqgl.Service('KEY');
services.traffic.incidents({_sw: {lng: -105.25, lat: 39.95}, _ne: {lng: -104.71, lat: 39.52}}, 'incidents,construction')
.then(response => console.log(response));
The area in which to search for incidents.
A list of incident types to return. Possible values are: incidents, construction, event, congestion. Default: incidents,construction
A Promise containing a JSON object in the results.
Loading...