We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
related: derhuerst/hafas-gtfs-rt-feed#4
pbf parses missing optional fields as not missing and 0 (mafintosh/protocol-buffers#20).
pbf
0
One option is to use ProtoBuf.js using the --keep-case build flag.
--keep-case
const {Position} = require('gtfs-realtime-bindings').transit_realtime const p = {latitude: 1.23, longitude: 2.34} Position.verify(p) // null const buf = Position.encode(p).finish() Position.decode(buf) // Position { // latitude: 1.2300000190734863, // longitude: 2.3399999141693115 // } Position.toObject(Position.decode(buf)) // { latitude: 1.2300000190734863, longitude: 2.3399999141693115 }
The text was updated successfully, but these errors were encountered:
PBF encoding: snake_case -> camelCase 🐛✅
52b3077
closes #21 see also derhuerst/gtfs-rt-bindings#6
43f6f0c
71ac301
derhuerst
No branches or pull requests
related: derhuerst/hafas-gtfs-rt-feed#4
pbf
parses missing optional fields as not missing and0
(mafintosh/protocol-buffers#20).One option is to use ProtoBuf.js using the
--keep-case
build flag.The text was updated successfully, but these errors were encountered: