152 points · by KoftaBob · 4y ago · 39 comments
https://traffxml.gitlab.io/ seems to be a better landing page than the submission URL which just contains a bunch of loosely organized git repositories.
What the above describes is Navit receiving traffic information, I want Navit (or ideally, an even simpler app) to submit data to an open source traffic server.
The idea is to crowd-collect traffic information just like how Google does it (monitoring speed of those who have their Android phones with Google GPS services on, but out of willing participants): basically transparent to the users (other than them having to install the app and then figure out a way to allow them to run it in the background on recent Android systems :).
I'd feel much more comfortable submitting to a server where I've got full control of the data it emits (I can better ensure it retains my privacy by using new route ids often, for instance).
Seems to be public traces the public are submitting willingly. What's missing is a service to integrate that data into the map view/routing, unless this is exactly what Traff integrates as well, unsure.
There's no point coloring a segment red if I'm turning right, when all the slow-moving traffic is waiting for a left. Anyone who spends more than a day driving a car in a populous area will recognize this.
I noticed that Traff can represent blocked or closed lanes as individual events, but otherwise considers "fast" and "slow" traffic only at the scale of streets and roads.
Guess I will be waiting longer, still.
https://en.wikipedia.org/wiki/Traffic_message_channel#Functi...
https://gitlab.com/traffxml/traff/raw/master/TraFF%20Specifi...
> The approach chosen is essentially based upon the following principles:
> • Use the TMC data model as a starting point
For info beyond the code repo there is this: https://traffxml.gitlab.io/#about
> it would be nice if there was an option for a group-level Readme on Gitlab.
Thanks for the idea. The proposal for Group READMEs is discussed in this thread: https://gitlab.com/gitlab-org/gitlab/-/issues/15041#note_102... Suggest adding your preferences for the proposed solutions, thanks.
BTW The repo with the specification seems to be https://gitlab.com/traffxml/traff and it contains a presentation with more context https://gitlab.com/traffxml/traff/-/blob/master/TraFF%20Pres...
Quite certainly not. It's not even more popular if HTML is included.
It may be smaller, but not nessecarily so: both json and XML are easy to compress due to repetitive (overhead) characters. Uncompressed it depends on the use-case and implementation: the ability to have both attributes and content on a node, allow (but certainly not always are) XML to be smaller than JSON which does not have this.
Easy to use depends on the features: JSON is gaining complexity rapidly (json-ld, json-templates, jsonschemas etc) to fill up what XML can do OOTB. Sure: an all-out XML (XMLT, DTD, etc) is far more complex than a simple JSON. But hardly more than a JSON with JSTL, JSon-schema etc. The exact same performance and security problems arise in JSON with all these features bolted on.
In other words: "it depends". But the idea that "JSON is 100x better" is repeated oft in the tech scene, yet impossible to back up in general. JSON may certainly be better for your case. But so can XML.
Nowadays HTML is not XML anymore [1].
Well I never!
However, we, the engineering community tend to fall in this hammer-nail mindset. Where we know and like JSON, and then start applying it outside of its fitting niche.
We start using it for configuration (only to find out it's lack of features such as not allowing comments makes it fully unusable).
We invent stuff like symlinks, linked data, schemas, JSLT, etc. rather than moving to a much more appropriate format, we change the inappropriate format into an abomination.
Back when xml was still commonly used, xml schemas were optional as well. The notion of insisting on adding longish urls to every attribute and namespacing elements and attributes, kind of defeated the purpose of using xml. It made everything harder; including parsing, xsl transformations, xpath expressions, etc.
Who thought this was a good idea?