[][src]Crate stcp_scraper

Structs

Code

Internal code for STCP, such as 600 or 107. In this case, 107 matches to the ZC pubcode.

Destination
Line

Represents a STCP line, such as 600, ZC or 3M.

PubCode

Code shown to the end users, such as 600 or ZC.

Schedule
Stop

Enums

Error

Functions

fetch_destinations
fetch_lines
fetch_next_buses

Fetches the schedules given a stop. stop_code is the code given by STCP to the stop. You can check it in the Código part of the table for line 200 here: https://www.stcp.pt/pt/viajar/linhas/?linha=200

fetch_stops