Skip to content

This connector loads in CARTO traffic data provided by Madrid's Open Data Portal.

Notifications You must be signed in to change notification settings

decision-labs/madrid-traffic-connector

 
 

Repository files navigation

Madrid traffic connector

This connector loads in CARTO traffic data provided by Madrid's Open Data Portal.

It's deployed using serverless. Thus, it could run in AWS Lambda.

Connectors

The following connectors are available:

  • cameras
  • incidences
  • intensitylines
  • intensitypois
  • servicelevel
  • trafficlightsacustw
  • trafficlightsred
  • streetsgeocoder (inverse geocoding for incidences)
  • pollutionincidences
  • pollutionscenarios

Testing connectors

You can test in your local environment with this CLI tool:

node run_connector.js -c [cameras|incidences|intensitylines|intensitypois|servicelevel|trafficlightsacustw|trafficlightsred|streetsgeocoder|pollutionincidences|pollutionscenarios]

Example:

CARTO_USERNAME=cartouser CARTO_API_KEY=cartoapikey node run_connector.js -c cameras

AWS Lambda deploy

AWS Lambda deploy function:

$ serverless deploy -v

AWS Lambda invoke function:

$ serverless invoke -f myfunction -l

AWS Lambda update function (without AWS CloudFormation because is slow):

$ serverless deploy function -f myfunction -v

About

This connector loads in CARTO traffic data provided by Madrid's Open Data Portal.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%