An API wrapper for TV5-MMDA's Traffic Monitoring API.
Built to add more useful endpoints.
GET /v1/highways
Get list of monitored highways.
GET /v1/segments
Get list of segments.
GET /v1/highways/<highway_id>/segments
Get list of segments in a highway.
GET /v1/traffic
Get all traffic details.
GET /v1/highways/<highway_id>/traffic
GET traffic details of a highway.
GET /v1/segments/<segment_id>/traffic
GET traffic details of a highway segment.
Filter traffic result by direction or by traffic status. Append a query string to any traffic endpoint.
?direction=<direction>
?status=<status>
?direction=<direction>&status=<status>
NB: Northbound
SB: Southbound
L: Light
ML: Light to Moderate
M: Moderate
MH: Moderate to Heavy
H: Heavy
Make a copy of example.env
named .env
. Updated .env
file if needed.
Inspired by Ridvan Baluyos' traffic-api written in PHP.
Open-sourced software licensed under the MIT license.
Copyright (c) 2017 Dhan-Rheb Belza