summaryrefslogtreecommitdiff
path: root/easytool/data.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-08-12 18:29:31 +0800
committerHarald Welte <laforge@gnumonks.org>2010-08-12 18:29:31 +0800
commit4d4a06afcbc6ca1a2056ab2e4973b454eba59de3 (patch)
tree548e0ffbf36d7491f98c6c901bc094bce2ec534e /easytool/data.c
parente59e499029c05a68156cdf9d61ceac54e6813d3a (diff)
split easytool into multiple files, add database of MRT station names
Diffstat (limited to 'easytool/data.c')
-rw-r--r--easytool/data.c103
1 files changed, 103 insertions, 0 deletions
diff --git a/easytool/data.c b/easytool/data.c
new file mode 100644
index 0000000..87de407
--- /dev/null
+++ b/easytool/data.c
@@ -0,0 +1,103 @@
+
+#include <string.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <stdint.h>
+
+#include "utils.h"
+#include "easycard.h"
+
+/* Taipei MRT station name / ID mapping */
+/* Result of http://web.trtc.com.tw/e/stationdetail.asp?ID=XX */
+const struct value_string taipei_mrt_stn_id[] = {
+ { 7, "Songshan Airport" },
+ { 8, "Zhongshan Junior Highschool" },
+ { 9, "Nanjing East Road" },
+ { 10, "Zhongxiao Fuxing" },
+ { 11, "Daan" },
+ { 12, "Technology Building" },
+ { 13, "Liuzhangli" },
+ { 14, "Linguang" },
+ { 15, "Xinhai" },
+ { 16, "Wanfang Hospital" },
+ { 17, "Wanfang Community" },
+ { 18, "Muzha" },
+ { 19, "Taipei Zoo" },
+ { 21, "Dazhi" },
+ { 22, "Jiannan Road" },
+ { 23, "Xihu" },
+ { 24, "Gangquian" },
+ { 25, "Wende" },
+ { 26, "Neihu" },
+ { 27, "Dahu Park" },
+ { 28, "Huzhou" },
+ { 29, "Donghu" },
+ { 30, "Nangang Software Park" },
+ { 31, "Nangang Exhibition Center" },
+ { 32, "Xiaobitan" },
+ { 33, "Xindian" },
+ { 34, "Xindian City Office" },
+ { 35, "Quizhang" },
+ { 36, "Dapinglin" },
+ { 37, "Jingmei" },
+ { 38, "Wanlong" },
+ { 39, "Gongguan" },
+ { 40, "Taipower Building" },
+ { 41, "Guting" },
+ { 42, "CKS Memorial Hall" },
+ { 43, "Xiaonanmen" },
+ { 45, "Dingxi" },
+ { 46, "Yongan Market" },
+ { 47, "Jingan" },
+ { 48, "Nanshijiao" },
+ { 50, "NTU Hospital" },
+ { 51, "Taipei Main Station" },
+ { 53, "Zhongshan" },
+ { 54, "Shuanglian" },
+ { 55, "Minquan West Road" },
+ { 56, "Yuanshan" },
+ { 57, "Jiantan" },
+ { 58, "Shilin" },
+ { 59, "Zhishan" },
+ { 60, "Mingde" },
+ { 61, "Shipai" },
+ { 62, "Qilan" },
+ { 63, "Qiyan" },
+ { 64, "Beitou" },
+ { 65, "Xinbeitou" },
+ { 66, "Fuxinggang" },
+ { 67, "Zhongyi" },
+ { 68, "Guandu" },
+ { 69, "Zhuwei" },
+ { 70, "Hongshulin" },
+ { 71, "Danshui" },
+ { 77, "Yongning" },
+ { 78, "Tucheng" },
+ { 79, "Haishan" },
+ { 80, "Far Eastern Hospital" },
+ { 81, "Fuzhong" },
+ { 82, "Banqiao" },
+ { 83, "Xinpu" },
+ { 84, "Jiangzicui" },
+ { 85, "Longshan Temple" },
+ { 86, "Ximen" },
+ { 88, "Shandao Temple" },
+ { 89, "Zhongxiao Xinsheng" },
+ { 91, "Zhongxiao Dunhua" },
+ { 92, "SYS Memorial Hall" },
+ { 93, "Taipei City Hall" },
+ { 94, "Yongchun" },
+ { 95, "Houshanpi" },
+ { 96, "Kunyang" },
+ { 97, "Nangang" },
+ { 0, NULL }
+};
+
+/* Easycard Transaction Type names */
+const struct value_string easy_tt_names[] = {
+ { EASY_TT_MRT_ENTER, "Enter MRT Stn" },
+ { EASY_TT_MRT_EXIT, "Leave MRT Stn" },
+ { EASY_TT_PURCHASE, "Shop Purchase" },
+ { 0, NULL }
+};
personal git repositories of Harald Welte. Your mileage may vary