jamespfennell / transiter

Web service for transit data
https://demo.transiter.dev
MIT License
62 stars 7 forks source link

Support installing a system using just its ID #115

Closed jamespfennell closed 5 months ago

jamespfennell commented 1 year ago

In the Transiter repo we host an "official" collection of transit system configs. In many cases users will install a transit system using one of these configs. Given this, we should consider adding support to the Transiter API to install a system by just specifying its ID. The config will then be pulled from GitHub.

Overall we would then support three ways of installing a system:

  1. Using the official collection in the repo.
  2. Using a URL.
  3. Using a local file.
jamespfennell commented 1 year ago

Also, we should consider making the ID itself optional and assume that if the config is <file name>.yaml, the desired ID is <file name>. Thus us-ny-subway.yaml would automatically get ID us-ny-subway unless another value is provided.