The first app using the STIB-MIVB open data
A couple of days ago, the public transportation company of Brussels (STIB-MIVB) released for the first time their data, including real time data, under an open licence. We took it as a challenge and one day later, we released the first app based on these data.
It shows the real time location of the surface & underground vehicles, updated every three minutes.
Technically, the data is hosted on a public web hosting, which cannot get periodical updates over the network (using ‘cron’ & ‘curl’). We then implemented a small cache mechanism: at each query of the data by the webpages, the script on the server checks if the data is enough up to date. If not, the new data the server retrieves the data from the STIB-MIVB portal.