Skip to content
This repository has been archived by the owner on Aug 22, 2019. It is now read-only.
/ lambda-gtfsrt Public archive

Parse vehicle positions and trip updates from a GTFS-realtime feed using AWS Lambda.

License

Notifications You must be signed in to change notification settings

scascketta/lambda-gtfsrt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lambda-gtfsrt

License

Parse vehicle positions and trip updates from a GTFS-realtime feed using AWS Lambda. Particularly useful when hooked up as a JSON API using AWS's API Gateway.

Usage

The Lambda handler expects a URL to passed through the event using the key url (i.e. event['url']).

Quickstart

  1. Create a virtualenv at .env - virtualenv .env.
  2. Build this project into a zip file by running build.sh.
  3. Create a Lambda function through the AWS console or the AWS CLI using the built zip file.
  4. [OPTIONAL] Create an API Gateway endpoint that calls the Lambda function you created in step 2. To allow users of this endpoint to pass an arbitrary URL to the Lambda function, setup an input mapping template in API Gateway.

Monitoring

Want to get notified by text and email when a GTFS-realtime feed goes empty for more than N minutes? Check out this gist using Cronitor.

About

Parse vehicle positions and trip updates from a GTFS-realtime feed using AWS Lambda.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published