API Endpoint for Traffic Data
- API Endpoint for Traffic Data
Hosting is at http://api.hitraffic.org/v1
- from: Fetch incidents beginning from this date. Should be in a unix timestamp format.
- to: Fetch incidents up to this date. Should be in a unix timestamp format.
- area: Area as defined by GET /areas
- type: Incident type as defined by GET /types
GET /incidents?from=2014-10-31T23:59:59Z
- Fetch all incidents that happened since 10/31/2014 11:59:59PM.
GET /incidents?from=2014-10-31T23:59:59Z&to=2015-01-01T00:00:00Z
- Fetch all incidents that happened between 10/31/2014 11:59:59PM and 1/1/2015 12:00:00AM.
- Clone/fork this project
npm install
- Create a
.env
file that contains your configuration. An example is provided in.env.example
. - Run
npm start
.