-
Notifications
You must be signed in to change notification settings - Fork 7
4. Service call
Service calls are available
- Download gtfs static data, e.g. to automate frequent updates.
This will erase any files with the same name in gtfs2 folder, then download a new zip and extract
In case you have errors related to feed_info, the last toggle allows you to remove this from the zip file before it gets extracted to the database.
- Download gtfs realtime data, to reduce multiple downloads from the same source for different trips
Example: you have multiple routes setup from source xyx (e.g. Netherlands, Germany, Switzerland - wide), to avoid calling externally for each one of them and collect a large(r) set of data evry minute multiple times, you can choose to download via a single call and point your routes to the local file instead.
Note: this approach could apply to all realtime sources, TripUpdates, VehicleLocations, Alerts
The file will receive a .rt based on the name
- Update the local stops, especially when you have tied them to a location changing person.
Note: strongly recommended is to not apply an automation with high frequency as this is usually not required. Suggest to base it when person lat/lon is 'stable' for a while. You can also tie this service to a action (button)