4 releases

new 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 77/week @ 2024-08-05 307/week @ 2024-08-12 17/week @ 2024-08-19 71/week @ 2024-08-26 86/week @ 2024-09-02 30/week @ 2024-09-09 108/week @ 2024-09-16 53/week @ 2024-09-23 99/week @ 2024-09-30 178/week @ 2024-10-07 177/week @ 2024-10-14 127/week @ 2024-10-21 174/week @ 2024-10-28 51/week @ 2024-11-04 216/week @ 2024-11-11

592 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