openmove / odh-mentor-otp

https://mobility.meran.eu
1 stars 3 forks source link

add new env var for GTFS RT #36

Closed ghost closed 3 years ago

ghost commented 3 years ago

add new environment var

GTFS_RT_URL

and use it inside file router-config.json

ghost commented 3 years ago

related to #8 refact router-config.json suing json files.. instead of "script echo" generation

and include more ENV VARS GTFS_RT_URL

ghost commented 3 years ago

docs router-config: https://docs.opentripplanner.org/en/v1.5.0/Configuration/#router-configuration

gtfs-rt: https://docs.opentripplanner.org/en/v1.5.0/Configuration/#configuring-real-time-updaters

ghost commented 3 years ago

{ "type": "bike-rental", "sourceType": "bgfs", "url": "https://www.capitalbikeshare.com/data/stations/bikeStations.xml", "frequencySec": -1 },

{ "type": "bike-rental", "frequencySec": 300, "sourceType": "gbfs", "url": "http://coast.socialbicycles.com/opendata/" },

zabuTNT commented 3 years ago
{
            "type": "stop-time-updater",
            "frequencySec": 60,
            // this is either http or file... shouldn't it default to http or guess from the presence of a URL?
            "sourceType": "gtfs-http",
            "url": "http://developer.trimet.org/ws/V1/TripUpdate/appID/0123456789ABCDEF",
            "feedId": "TriMet"
        }
{
            "type": "real-time-alerts",
            "frequencySec": 30,
            "url": "http://developer.trimet.org/ws/V1/FeedSpecAlerts/appID/0123456789ABCDEF",
            "feedId": "TriMet"
        },
ghost commented 3 years ago

creare prima gtfs trentino trasporti e crare grafo

testing real-time-alerts http://gtfs.openmove.com/tt (protobuffer)

aggiunger http header: json curl -H "Accept: application/json" "https://gtfs.openmove.com/tt"

testing stop time updater http://gtfs.openmove.com/autostradale (protbuffer)

ghost commented 3 years ago

MENZ having only trips updates TODO verify it after is published url

zabuTNT commented 3 years ago

implemented with this commit 240cb66a561ee3ebcaac56d29be0da31b2bcb3bb

zabuTNT commented 3 years ago

but it still use the echo for the generation. reopen or create a new issue?

stefanocudini commented 3 years ago

solved here: https://github.com/openmove/odh-mentor-otp/commit/790170d2ac3ed590625b9c9588334cad3332968d