2012年2月22日 星期三

Taiwan High Speed Rail data RESTful API released

We are glad to release our first package of API. It's about train information for Taiwan High Speed Rail (THSR). You can use this API to build your own THSR Apps for scheduling your tour, find stops information. You can also get latitude and longitude data for stops, so you can play it with Google map.


The roadmap of AccessTaiwan is shown below:

  • First stage: 
    • Traffic Data, including THSR, Taiwan raiway, city buses, long range bus, flight, car-rents, and local taxi stations.
  • Second stage: 
    • Culture Data, including educational data from National Palace Museum and other museum, indigenous culture data, tradition events.
  • Third stage: 
    • Tours Data, including hotel, scenic spots, local food, souvenir.
To get API usage manual, please register you email at www.accesstaiwan.org. You can have API usage manual without any charge in 24~48 hours. Here is an example, shows the arriving time of each stop of train 511:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
 "trainId":"551",
 "onlyOnDayOfWeek":null,
 "stopTimes":[
  {
   "time":"-",
   "stop":"Taipei"
  },
  {
   "time":"-",
   "stop":"Banciao"
  },
  {
   "time":"-",
   "stop":"Taoyuan"
  },
  {
   "time":"-",
   "stop":"Hsinchu"
  },
  {
   "time":"06:30",
   "stop":"Taichung"
  },
  {
   "time":"06:57",
   "stop":"Chiayi"
  },
  {
   "time":"07:17",
   "stop":"Tainan"
  },
  {
   "time":"07:30",
   "stop":"Zuoying"
  }],
}

沒有留言:

張貼留言