4 releases

0.1.3 Nov 12, 2024
0.1.2 Aug 14, 2024
0.1.1 Aug 14, 2024
0.1.0 Aug 11, 2024

#4 in #updated

Download history 73/week @ 2024-09-18 49/week @ 2024-09-25 97/week @ 2024-10-02 207/week @ 2024-10-09 169/week @ 2024-10-16 148/week @ 2024-10-23 138/week @ 2024-10-30 77/week @ 2024-11-06 176/week @ 2024-11-13 120/week @ 2024-11-20 104/week @ 2024-11-27 158/week @ 2024-12-04 113/week @ 2024-12-11 25/week @ 2024-12-18 9/week @ 2025-01-01

198 downloads per month
Used in 4 crates

MIT AND Apache-2.0

25KB

gtfs-realtime

This library is a fork of the original https://github.com/barzamin/gtfs-rt.


lib.rs:

Decoding and Encoding example GTFS data example

use prost::Message;

let url = "https://lbtgtfs.lbtransit.com/TMGTFSRealTimeWebService/Vehicle/VehiclePositions.pb";
let response = reqwest::get(url).await.unwrap();
let bytes = response.bytes().await.unwrap();
let data: Result<gtfs_realtime::FeedMessage, prost::DecodeError> = prost::Message::decode(bytes.as_ref());
let data = data.unwrap();

//encode back into protobuf
let rencoded = data.encode_to_vec();

Dependencies

~1.1–3.5MB
~59K SLoC