Giter Club home page Giter Club logo

tallinn-transport-api's Introduction

Tallinn public transport API

The API that powers https://viimane.info to help people quickly view their last available transit times in Tallinn.

Imports GTFS only in production environment. If NODE_ENV equals other than production, call the import script manually. Data import is now available under /api/data/update.

Ask in the issues or make a PR to add your domain to the CORS list.

Feel free to fork or deploy to Heroku:

Deploy

TODO:

  • Create REST API for our GTFS mongo collection
  • Expose handful of GET endpoints (stop, stops, route, routes)
  • Filter/parse GTFS data better (zone_name should contain Harju*, etc.)
  • Design query flow for FE
    • Get vehicle type (to filter out agency names like Elron maybe)
    • Get user's position and query stops by geo + radius
    • Get stop times by stop_id
    • Get route times by route_id (?)
  • Configure start script to run index.js (maybe rename to import.js) and then run server.js
  • Check mongoose collections and if empty, call /api/data/update
  • Generate UI for API docs (/ -> /docs)
  • Have a cup of tea

tallinn-transport-api's People

Contributors

andreasvirkus avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

ikakus charminz

tallinn-transport-api's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.