2012年3月16日 星期五

Taiwan Railways data RESTful API Documentation

Dear friends,

You can now access Taiwan Railways(TRAs) data with following RESTful API.

To list all TRAs stations information:
Format:JSON

JSON Definition
  • name: The stop name
  • id: Random ID
  • latitude: The latitude of the stop
  • longitude: The longitude of the stop
Example Request:GET http://api.accesstaiwan.org/traffic/tra/stops/

To get single TRA stop information:
  • GET traffic/tra/stop/{stopName}
Format:JSON

Example Request:GET http://api.accesstaiwan.org/traffic/tra/stop/Taipei

沒有留言:

張貼留言