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.
The following connectors are available:
- cameras
- incidences
- intensitylines
- intensitypois
- servicelevel
- trafficlightsacustw
- trafficlightsred
- streetsgeocoder (inverse geocoding for incidences)
- pollutionincidences
- pollutionscenarios
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 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