Hi! So I am not really sure how all this works.
I want to use realtime data from the trains and buses in Sweden.
This is their page: https://www.trafiklab.se/api/
As I understand it I should use GTFS data which come in Protobuf format.
I think I must convert the Protobuf-data to Swift code. Not sure if this involves json.
One file I have has the extension .pb.
I tried to use this page:
https://medium.com/@andy.nguyen.1993/protobuf-in-swift-809658ecdb22
When I write this:
$ git checkout tags/1.1.1
$ swift build -c release -Xswiftc -static-stdlib
I get this error:
"error: 'swift-protobuf': the Swift tools version specification is possibly missing a version specifier; consider using '// swift-tools-version: 6.0.3' to specify the current Swift toolchain version as the lowest Swift version supported by the project"
As you understand I am really not sure what I'm doing. Maybe there is a better way?
Any help would be highly appreciated.
1
0
622