Luca Casonato ๐Ÿณ๏ธโ€๐ŸŒˆ @lcas.dev ยท Dec 28

On startup, the Italo app also fetches a list of all stations Italo can sell tickets to/from. This file is 2.3 MB, but not because of the list of stations. No, it's because it contains for every station, the list of every other station that is reachable from that station (and much more garbage)

29 likes 1 replies

?

Replies

Luca Casonato ๐Ÿณ๏ธโ€๐ŸŒˆ ยท Dec 28

In a suprise to absolutely no one, the API the Italo app uses for real-time data is also beautifully designed. The disruption field has the great name "Distruption", and the dates are encoded as strings in the format "\/Date(1766949300000+0100)\/". Note those backslashes are not escaping anything.