How use pbf files

Hey,

I would like to use the traffic API vector file, but the output format is pbf and I can’t use it.
Is it a proprietary format that I have to use with tomtom tools?
Is it possible to use it with OpenSources software or in another way?

Kind regards
Mathias

Hi,

Please, check the documentation for Traffic API:


Quote:
“The Traffic Vector Incidents Tiles API, for a single request, returns a binary Response body which must be deserialized by client code generated by the Google Protocol Buffers compiler.”

You can either decode protobuf files with the compiler based on schema in the documentation (see: https://github.com/protocolbuffers/protobuf) or use TomTom library that handles vector tiles.

TomTom provides the following SDKs handling both map and traffic vector tiles:

I hope that it helps.

2 Likes