[gull] Open Data pour les TPGs

Laurent Franceschetti laurent at franceschetti.net
Fri Sep 27 10:39:33 CEST 2013


J'ai commencé tester cette interface, c'est sympathique. Excellent exercice pour des étudiants ou des apprentis en programmation, qui voudraient faire quelque chose de fun avec du XML ou du JSON.

Notez que sur la page d'accueil, il y a une petite erreur. La requête suivante pour trouver le nom d'un arrêt est
http://rtpi.data.tpg.ch/v1/GetStops?key=XXXXXXXXXXX&name=Bachet

Est erronée. Après test, le paramètre correct est stopName:
http://rtpi.data.tpg.ch/v1/GetStops?key=XXXXXXXXXXX&stopName=Bachet

(Note: il faut demander un clé aux TPGs au moyen du formulaire, pour pouvoir accéder aux requêtes).


Le 26 sept. 2013 à 12:12, Laurent Franceschetti <laurent at franceschetti.net> a écrit :

> Pour votre information, les Transports Public Genevois ont une initiative "Open Data". Ils ont mis à disposition une API pour accéder aux données temps réel du réseau:
> http://www.tpg.ch/web/7289503/5
> 
> 
> Laurent Franceschetti
> 
> 
> ______________
> No one shall be subjected to arbitrary interference with his privacy, family, home or correspondence, nor to attacks upon his honour and reputation. Everyone has the right to the protection of the law against such interference or attacks (Art 12 Universal Declaration of Human Rights).
> 
> 
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://forum.linux-gull.ch/pipermail/gull/attachments/20130927/e5ec3216/attachment.html>


More information about the gull mailing list