stl_bundle_fares
Fetches the latest Metro fare data from the captured web page, converting prices to integer cents for bundling. Run stl_web_capture first if no data is available.
Instructions
The fare table the app ships, with its as_of date and source URL baked in.
Fares are NOT in the GTFS feed -- this reads the latest capture of Metro's fares page, so run stl_web_capture first if it reports nothing. Prices are integer cents; a fare table carrying 2.4999999 is a bug that reaches riders.
Args: fmt: 'json', or 'kotlin' to emit compilable Kotlin source. Hand-copying a fare table into Kotlin is how a stale fare reaches a rider.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fmt | No | json |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |