{"id":1576,"date":"2022-02-10T15:26:46","date_gmt":"2022-02-10T06:26:46","guid":{"rendered":"http:\/\/ji-develop.com\/blog\/?page_id=1576"},"modified":"2026-01-03T15:08:26","modified_gmt":"2026-01-03T06:08:26","slug":"getstationapi","status":"publish","type":"page","link":"https:\/\/ji-develop.com\/blog\/getstationapi","title":{"rendered":"\u99c5\u30c7\u30fc\u30bf\u53d6\u5f97API"},"content":{"rendered":"<p>\u5168\u56fd\u306e\u99c5\u30c7\u30fc\u30bf\u3092JSON\u3067\u53d6\u5f97\u3067\u304d\u308bAPI\u3067\u3059\u3002<\/p>\n<h2>URL<\/h2>\n<p>https:\/\/ji-develop.com\/station\/php\/API\/getStation.php?station_name=\u25cb\u25cb\u25cb\u25cb&#038;pattern_match=\u25cb<\/p>\n<h2>\u30ea\u30af\u30a8\u30b9\u30c8\u30d1\u30e9\u30e1\u30fc\u30bf<\/h2>\n<table style=\"border-collapse: collapse; width: 100%;\">\n<tbody>\n<tr>\n<td style=\"width: 50%;\">station_name<\/td>\n<td style=\"width: 50%;\">\u53d6\u5f97\u3057\u305f\u3044\u99c5\u540d\u3092\u6307\u5b9a<br \/>\n\u6f22\u5b57\u3001\u3072\u3089\u304c\u306a\u3069\u3061\u3089\u3067\u3082\u53ef\u80fd<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%;\">pattern_match<\/td>\n<td style=\"width: 50%;\">1:\u5b8c\u5168\u4e00\u81f4<br \/>\n2:\u66d6\u6627\u691c\u7d22<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u30ec\u30b9\u30dd\u30f3\u30b9<\/h2>\n<table style=\"border-collapse: collapse; width: 100%; height: 264px;\">\n<tbody>\n<tr style=\"height: 24px;\">\n<td style=\"width: 33.333333333333336%; height: 24px;\">results\uff08\u53d6\u5f97\u7d50\u679c\uff09<\/td>\n<td style=\"width: 66.66666666666667%; height: 24px;\" colspan=\"2\">\u5931\u6557\u306e\u5834\u5408 failure<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 33.333333333333336%; height: 24px;\">name<\/td>\n<td style=\"width: 33.333333333333336%; height: 24px;\">\u99c5\u540d\uff08\u6f22\u5b57\uff09<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 33.333333333333336%; height: 24px;\">kanaName<\/td>\n<td style=\"width: 33.333333333333336%; height: 24px;\">\u99c5\u540d\uff08\u3072\u3089\u304c\u306a\uff09<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 33.333333333333336%; height: 24px;\">prefectureName<\/td>\n<td style=\"width: 33.333333333333336%; height: 24px;\">\u99c5\u304c\u5b58\u5728\u3059\u308b\u90fd\u9053\u5e9c\u770c<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 33.333333333333336%; height: 24px;\">lineName1<\/td>\n<td style=\"width: 33.333333333333336%; height: 24px;\">\u99c5\u304c\u6240\u5c5e\u3059\u308b\u8def\u7dda\u540d<\/td>\n<\/tr>\n<tr style=\"height: 48px;\">\n<td style=\"width: 33.333333333333336%; height: 48px;\">lineName2~9<\/td>\n<td style=\"width: 33.333333333333336%; height: 48px;\">\u99c5\u304c\u6240\u5c5e\u3059\u308b\u8def\u7dda\u540d2~9<br \/>\n\u203b\u306a\u3044\u5834\u5408null<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 33.333333333333336%; height: 24px;\">lat<\/td>\n<td style=\"width: 33.333333333333336%; height: 24px;\">\u99c5\u306e\u7def\u5ea6<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 33.333333333333336%; height: 24px;\">lng<\/td>\n<td style=\"width: 33.333333333333336%; height: 24px;\">\u99c5\u306e\u7d4c\u5ea6<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 33.333333333333336%; height: 24px;\">passenger<\/td>\n<td style=\"width: 33.333333333333336%; height: 24px;\">\u99c5\u306e\u4e57\u964d\u5ba2\u6570<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 33.333333333333336%; height: 24px;\">passengeRemarks<\/td>\n<td style=\"width: 33.333333333333336%; height: 24px;\">\u99c5\u306e\u4e57\u964d\u5ba2\u6570\u5099\u8003<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 33.333333333333336%;\">passengerYear<\/td>\n<td style=\"width: 33.333333333333336%;\">\u99c5\u306e\u4e57\u964d\u5ba2\u6570\u7d71\u8a08\u5e74<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 33.333333333333336%;\">sourceUrl<\/td>\n<td style=\"width: 33.333333333333336%;\">\u99c5\u306e\u4e57\u964d\u5ba2\u6570\u30c7\u30fc\u30bf\u51fa\u5178\u5143URL<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u4f7f\u7528\u4f8b\uff08JavaScript\uff09<\/h2>\n<p><script src=\"https:\/\/gist.github.com\/jun4554\/76358454b891bfc4254df09ca274beea.js\"><\/script><\/p>\n<h2>\u88dc\u8db3<\/h2>\n<p>\u8def\u7dda\u6bce\u306e\u4e57\u964d\u5ba2\u6570\u306e\u30c7\u30fc\u30bf\u3067\u307e\u3068\u307e\u3063\u3066\u3044\u308b\u305f\u3081\u30011\u3064\u306e\u99c5\u3067\u3082\u8907\u6570\u306e\u8def\u7dda\u306b\u6240\u5c5e\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u8907\u6570\u53d6\u5f97\u3057\u3066\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f8b\uff1a&#8221;\u6771\u4eac&#8221;\u3067\u5b8c\u5168\u4e00\u81f4\u691c\u7d22\u3092\u3057\u305f\u5834\u5408\u3001JR\u5728\u6765\u7dda\u3001\u6771\u4eac\u30e1\u30c8\u30ed\u4e38\u306e\u5185\u7dda\u3001\u6771\u6d77\u9053\u65b0\u5e79\u7dda\u306e\uff13\u3064\u304c\u62bd\u51fa\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2>API\u5229\u7528\u898f\u7d04<\/h2>\n<ol>\n<li><span style=\"font-size: 10pt;\">API\u5229\u7528\u8005\u306f\u3001\u672c\u5229\u7528\u898f\u7d04\u306b\u540c\u610f\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u3001API\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u672c\u5229\u7528\u898f\u7d04\u306e\u5168\u3066\u306e\u8a18\u8f09\u5185\u5bb9\u306b\u3064\u3044\u3066\u540c\u610f\u3057\u305f\u3082\u306e\u3068\u307f\u306a\u3055\u308c\u307e\u3059\u3002<\/span><\/li>\n<li><span style=\"font-size: 10pt;\">API\u306e\u9023\u643a\u306b\u3088\u3063\u3066\u3001\u63d0\u4f9b\u3055\u308c\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u95a2\u3059\u308b\u77e5\u7684\u8ca1\u7523\u6a29\u306fAPI\u306e\u4f5c\u6210\u8005\u306b\u5e30\u5c5e\u3057\u307e\u3059\u3002<\/span><\/li>\n<li><span style=\"font-size: 10pt;\">\u305f\u3060\u3057\u3001\u4e57\u964d\u5ba2\u6570\u30c7\u30fc\u30bf\u306b\u3064\u3044\u3066\u306f\u3001\u300c\u30af\u30ea\u30a8\u30a4\u30c6\u30a3\u30d6\u30fb\u30b3\u30e2\u30f3\u30ba \u8868\u793a\u2013\u7d99\u627f 4.0 \u56fd\u969b\uff08CC BY-SA 4.0\uff09\u300d\u306e\u4e0b\u3067\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u30a6\u30a3\u30ad\u30da\u30c7\u30a3\u30a2\u65e5\u672c\u8a9e\u7248\u306e\u5404\u99c5\u30da\u30fc\u30b8\u306e\u8a18\u8f09\u5185\u5bb9\u3092\u57fa\u306b\u53d6\u5f97\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u4e8c\u6b21\u5229\u7528\u306e\u969b\u306f\u5f53\u8a72\u30e9\u30a4\u30bb\u30f3\u30b9\u306e\u6761\u4ef6\u306b\u6e96\u62e0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\u5404\u99c5\u306e\u4e57\u964d\u5ba2\u6570\u30c7\u30fc\u30bf\u306e\u51fa\u5178\u5143\u306b\u3064\u3044\u3066\u306f\u3001sourceUrl \u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/span><\/li>\n<li><span style=\"font-size: 10pt;\">\u30a6\u30a3\u30ad\u30da\u30c7\u30a3\u30a2\u65e5\u672c\u8a9e\u7248\u306e\u5404\u99c5\u30da\u30fc\u30b8\u5185\u306e\u4e57\u964d\u5ba2\u6570\u6700\u65b0\u30c7\u30fc\u30bf\u3068\u306e\u4e00\u81f4\u306f\u4fdd\u8a3c\u3057\u307e\u305b\u3093\u3002<\/span><\/li>\n<li><span style=\"font-size: 10pt;\">API\u306e\u4f5c\u6210\u8005\u306f\u3001API\u306e\u5185\u5bb9\u5909\u66f4\u3084\u505c\u6b62\u30fb\u7d42\u4e86\u53ca\u3073\u30b5\u30fc\u30d0\u306e\u51e6\u7406\u901f\u5ea6\u4f4e\u4e0b\u3084\u969c\u5bb3\u306b\u3088\u3063\u3066\u751f\u3058\u305f\u3044\u304b\u306a\u308b\u640d\u5bb3\u306b\u3064\u3044\u3066\u4e00\u5207\u306e\u8cac\u4efb\u3092\u8ca0\u3044\u307e\u305b\u3093\u3002<\/span><\/li>\n<li><span style=\"font-size: 10pt;\">API\u306e\u4f5c\u6210\u8005\u306f\u3001API\u304b\u3089\u53d6\u5f97\u3057\u305f\u30c7\u30fc\u30bf\u306b\u3088\u3063\u3066\u767a\u751f\u3057\u305f\u640d\u5bb3\u306b\u3064\u3044\u3066\u3082\u4e00\u5207\u8cac\u4efb\u3092\u8ca0\u3044\u307e\u305b\u3093\u3002<\/span><\/li>\n<li><span style=\"font-size: 10pt;\">API\u306e\u4f5c\u6210\u8005\u306f\u3001API\u306e\u5b8c\u5168\u6027\u3001\u6b63\u78ba\u6027\u3001\u78ba\u5b9f\u6027\u3001\u6709\u7528\u6027\u3001\u9069\u6cd5\u6027\u3001\u53ef\u7528\u6027\u7b49\u660e\u793a\u7684\u304b\u9ed9\u793a\u7684\u304b\u306b\u95a2\u308f\u3089\u305a\u3001\u3044\u304b\u306a\u308b\u7a2e\u985e\u306e\u4fdd\u8a3c\u3082\u884c\u3044\u307e\u305b\u3093\u3002<\/span><\/li>\n<li><span style=\"font-size: 10pt;\">API\u5229\u7528\u8005\u304c\u3001API\u3092\u6539\u7ac4\u30fb\u89e3\u6790\u3059\u308b\u884c\u70ba\u3092\u7981\u6b62\u3057\u307e\u3059\u3002<\/span><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u5168\u56fd\u306e\u99c5\u30c7\u30fc\u30bf\u3092JSON\u3067\u53d6\u5f97\u3067\u304d\u308bAPI\u3067\u3059\u3002 URL https:\/\/ji-develop.com\/station\/php\/API\/getStation.php?station_name=\u25cb\u25cb\u25cb\u25cb&#038;patt&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"tags":[],"class_list":["post-1576","page","type-page","status-publish","article cf"],"_links":{"self":[{"href":"https:\/\/ji-develop.com\/blog\/wp-json\/wp\/v2\/pages\/1576","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ji-develop.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ji-develop.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ji-develop.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ji-develop.com\/blog\/wp-json\/wp\/v2\/comments?post=1576"}],"version-history":[{"count":23,"href":"https:\/\/ji-develop.com\/blog\/wp-json\/wp\/v2\/pages\/1576\/revisions"}],"predecessor-version":[{"id":1945,"href":"https:\/\/ji-develop.com\/blog\/wp-json\/wp\/v2\/pages\/1576\/revisions\/1945"}],"wp:attachment":[{"href":"https:\/\/ji-develop.com\/blog\/wp-json\/wp\/v2\/media?parent=1576"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ji-develop.com\/blog\/wp-json\/wp\/v2\/tags?post=1576"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}