航空路線時刻表


 Attention!

This page has not been translated into English yet. It is possible that some parts of description may contains old information. Please see Japanese Documents if you need the latest and accurate information.

交通種別がplaneの路線から時刻表を取得します。

GET /v1/{format}/plane/timetable

parameters

Name Type Description
format string レスポンスのデータ形式の指定。必須
指定できる値:
- xml: xml形式のデータ
- json: json形式のデータ
※クエリパラメータではなくパスに値を指定します。
key string アクセスキー。必須
railName string 平均路線。必須。指定できる値は、交通種別がplaneとなっている路線のみです。
date int 時刻表取得日付。省略可。省略時は日付を考慮しない時刻表になります。
Format: YYYYMMDD
direction string 方向。省略可
指定できる値:
- true: 上り
- false: 下り
Default: true

response

Name Description
ResultSet レスポンスの最下部を表す要素
ResultSet / apiVersion WebAPIバージョン
ResultSet / engineVersion エンジンバージョン
ResultSet / TimeTable 時刻表を表す要素
ResultSet / TimeTable / Direction 行き先方面を表す要素
ResultSet / TimeTable / Line 区間 を表す要素
ResultSet / TimeTable / Line / trainID 列車を特定する短期ID
※保存には不向きです
ResultSet / TimeTable / Line / ArrivalState 到着時の状態を表す要素
ResultSet / TimeTable / Line / ArrivalState / Datetime 日時を表す要素
ResultSet / TimeTable / Line / ArrivalState / Datetime / operation 運行日判定
- today: 日時通り
- yesterday: 前日
ResultSet / TimeTable / Line / DepartureState 出発時の状態を表す要素
ResultSet / TimeTable / Line / DepartureState / Datetime 日時を表す要素
ResultSet / TimeTable / Line / DepartureState / Datetime / operation 運行日判定
- today: 日時通り
- yesterday: 前日
ResultSet / TimeTable / Line / Name 名称を表す要素
ResultSet / TimeTable / Line / Name / abbreviation 略称
ResultSet / TimeTable / Line / Number 番号(号、便など)を表す要素
ResultSet / TimeTable / Station を表す要素
ResultSet / TimeTable / Station / Name 駅の名称を表す要素

example

GET /v1/xml/plane/timetable?key=アクセスキーを入力してください&railName=空路(東京-千歳)
<?xml version="1.0" encoding="UTF-8"?>
<ResultSet apiVersion="1.14.0.0" engineVersion="201404_01a">
 <TimeTable>
   <Station>
     <Name>新千歳空港</Name>
   </Station>
   <Line trainID="0">
     <Name abbreviation="ANA">全日本空輸</Name>
     <Number>50</Number>
     <DepartureState>
       <Datetime operation="today">07:30:00+09:00</Datetime>
     </DepartureState>
     <ArrivalState>
       <Datetime operation="today">09:10:00+09:00</Datetime>
     </ArrivalState>
   </Line>
   <Line trainID="1">
     <Name abbreviation="ADO">AIRDO</Name>
     <Number>12</Number>
     <DepartureState>
       <Datetime operation="today">08:00:00+09:00</Datetime>
     </DepartureState>
     <ArrivalState>
       <Datetime operation="today">09:35:00+09:00</Datetime>
     </ArrivalState>
   </Line>
   <Line trainID="2">
     <Name abbreviation="ANA">全日本空輸</Name>
     <Number>4712</Number>
     <DepartureState>
       <Datetime operation="today">08:00:00+09:00</Datetime>
     </DepartureState>
     <ArrivalState>
       <Datetime operation="today">09:35:00+09:00</Datetime>
     </ArrivalState>
   </Line>
   <Line trainID="3">
     <Name abbreviation="JAL">日本航空</Name>
     <Number>500</Number>
     <DepartureState>
       <Datetime operation="today">08:00:00+09:00</Datetime>
     </DepartureState>
     <ArrivalState>
       <Datetime operation="today">09:40:00+09:00</Datetime>
     </ArrivalState>
   </Line>
   <Line trainID="4">
     <Name abbreviation="SKY">スカイマーク</Name>
     <Number>706</Number>
     <DepartureState>
       <Datetime operation="today">08:15:00+09:00</Datetime>
     </DepartureState>
     <ArrivalState>
       <Datetime operation="today">09:55:00+09:00</Datetime>
     </ArrivalState>
   </Line>
   <Line>
   :
   </Line>
   <Direction>東京国際空港(羽田空港)</Direction>
 </TimeTable>
</ResultSet>
GET /v1/json/plane/timetable?key=アクセスキーを入力してください&railName=空路(東京-千歳)
{
 "ResultSet": {
   "apiVersion": "1.14.0.0",
   "engineVersion": "201404_01a",
   "TimeTable": {
     "Station": {
       "Name": "新千歳空港"
     },
     "Line": [
       {
         "trainID": "0",
         "Name": {
           "text": "全日本空輸",
           "abbreviation": "ANA"
         },
         "Number": "50",
         "DepartureState": {
           "Datetime": {
             "text": "07:30:00+09:00",
             "operation": "today"
           }
         },
         "ArrivalState": {
           "Datetime": {
             "text": "09:10:00+09:00",
             "operation": "today"
           }
         }
       },
       {
         "trainID": "1",
         "Name": {
           "text": "AIRDO",
           "abbreviation": "ADO"
         },
         "Number": "12",
         "DepartureState": {
           "Datetime": {
             "text": "08:00:00+09:00",
             "operation": "today"
           }
         },
         "ArrivalState": {
           "Datetime": {
             "text": "09:35:00+09:00",
             "operation": "today"
           }
         }
       },
       {
         "trainID": "2",
         "Name": {
           "text": "全日本空輸",
           "abbreviation": "ANA"
         },
         "Number": "4712",
         "DepartureState": {
           "Datetime": {
             "text": "08:00:00+09:00",
             "operation": "today"
           }
         },
         "ArrivalState": {
           "Datetime": {
             "text": "09:35:00+09:00",
             "operation": "today"
           }
         }
       },
       {
         "trainID": "3",
         "Name": {
           "text": "日本航空",
           "abbreviation": "JAL"
         },
         "Number": "500",
         "DepartureState": {
           "Datetime": {
             "text": "08:00:00+09:00",
             "operation": "today"
           }
         },
         "ArrivalState": {
           "Datetime": {
             "text": "09:40:00+09:00",
             "operation": "today"
           }
         }
       },
       {
         "trainID": "4",
         "Name": {
           "text": "スカイマーク",
           "abbreviation": "SKY"
         },
         "Number": "706",
         "DepartureState": {
           "Datetime": {
             "text": "08:15:00+09:00",
             "operation": "today"
           }
         },
         "ArrivalState": {
           "Datetime": {
             "text": "09:55:00+09:00",
             "operation": "today"
           }
         }
       },
       {
         :
       }
     ],
     "Direction": "東京国際空港(羽田空港)"
   }
 }
}