前後のダイヤ探索

指定された経路シリアライズデータ区間インデックスパラメータを元に、指定された区間インデックス以降の経路を探索します。

GET /v1/{format}/search/course/pattern

parameters

※ Requiredの「△」は、特定の条件においてそのパラメータが必須になることを示します。詳しくはパラメータのDescriptionを参照してください。

Name Type Required Description
format string レスポンスのデータ形式の指定。必須。
指定できる値:
- xml: xml形式のデータ
- json: json形式のデータ
※クエリパラメータではなくパスに値を指定します。
key string アクセスキー。必須
serializeData string 経路シリアライズデータ。必須
sectionIndex int 区間インデックス。必須。
answerCount int --- 最大回答数。最大20件。省略可。
Default: 5
previousCount int --- 出発日時が基準の経路の出発日時より前となる経路の回答数。 省略可。
0以上answerCount未満 (0 < answerCount) の値が指定可能です。
Default: (answerCount - 1) / 2 の小数点を切り捨てた整数。基準となる経路は必ず回答に含まれるため、割り切れない場合は、指定経路より後方の経路を1経路多く回答します。
(例:answerCountが5の場合、previousCountのデフォルト値は2になります。前の経路数2, 指定経路数1, 後ろの経路数2です。)
(例:answerCountが4の場合、previousCountのデフォルト値は1になります。前の経路数1, 指定経路数1, 後ろの経路数2です。)
addOperationLinePattern string --- 結果に経路の区間に紐づく運行路線パターンを付加します。省略可。
指定できる値:
- true: 付加します
- false: 付加しません
Default: false
checkEngineVersion string --- 完全な経路の再現を行う場合は、経路シリアライズデータ作成時のエンジンバージョンと再現時のエンジンバージョンが同一かのチェックを有効にします。エンジンバージョンが異なる場合は、エラーを返します。エンジンバージョンが異なる場合は、エラーを返します。省略可。
指定できる値:
- true: チェックする
- false: チェックしない
Default: true
gcs string --- リクエストやレスポンスに座標が含まれる場合、座標の測地系を指定することができます。また、リクエストパラメータの座標情報はgcsパラメータとは別の測地系を個別に指定可能です。省略可。
指定できる値:
- tokyo: 日本測地系
- wgs84: 世界測地系
Default: tokyo

response

経路探索と同等

※ 1件も経路が取得できなかった場合、空のレスポンスが返却されます。

example

GET /v1/xml/search/course/pattern?key=アクセスキーを入力してください&serializeData=シリアライズデータを入力してください&sectionIndex=2&answerCount=5
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ResultSet apiVersion="1.27.0.0" engineVersion="202010_04a">
  <Course dataType="onTimetable">
    <Price kind="FareSummary">
      :
    </Price>
    <Route timeOther="7" timeOnBoard="17" exhaustCO2="184" index="1" distance="92" timeWalk="0" transferCount="1" ...>
      <Point index="1">
        <Station code="22671">
          <Name>高円寺</Name>
          <Type>train</Type>
          <Yomi>こうえんじ</Yomi>
        </Station>
        :
      </Point>
      <Line stopStationCount="3" timeOnBoard="10" track="railway" index="1" distance="58" ...>
        <Name>JR総武線・千葉行</Name>
        <Type>train</Type>
        <ArrivalState no="13">
          <Type>normal</Type>
          <Datetime operation="today">2020-10-10T11:40:00+09:00</Datetime>
        </ArrivalState>
        <Destination>千葉</Destination>
        <TimeReliability>onTimetable</TimeReliability>
        <DepartureState no="2">
          <Type>normal</Type>
          <Datetime operation="today">2020-10-10T11:30:00+09:00</Datetime>
        </DepartureState>
        :
      </Line>
      <Point index="2">
        <Station code="22741">
          <Name>新宿</Name>
          <Type>train</Type>
          <Yomi>しんじゅく</Yomi>
        </Station>
        :
      </Point>
      <Line stopStationCount="2" timeOnBoard="7" track="railway" index="2" distance="34" ...>
        <Name>JR山手線内回り・渋谷・品川方面</Name>
        <Type>train</Type>
        <ArrivalState no="2">
          <Type>normal</Type>
          <Datetime operation="today">2020-10-10T11:54:00+09:00</Datetime>
        </ArrivalState>
        <Destination>大崎</Destination>
        <TimeReliability>onTimetable</TimeReliability>
        <DepartureState no="14">
          <Type>normal</Type>
          <Datetime operation="today">2020-10-10T11:47:00+09:00</Datetime>
        </DepartureState>
        :
      </Line>
      <Point index="3">
        <Station code="22715">
          <Name>渋谷</Name>
          <Type>train</Type>
          <Yomi>しぶや</Yomi>
        </Station>
        :
      </Point>
    </Route>
    :
  </Course>
  <Course dataType="onTimetable">
    <Price kind="FareSummary">
    :
    </Price>
    <Route timeOther="0" timeOnBoard="17" index="2" distance="92" timeWalk="0" transferCount="1" ...>
      <Point index="1">
        <Station code="22671">
          <Name>高円寺</Name>
          <Type>train</Type>
          <Yomi>こうえんじ</Yomi>
        </Station>
        :
      </Point>
      <Line stopStationCount="3" timeOnBoard="10" track="railway" index="1" distance="58" ...>
        <Name>JR総武線・千葉行</Name>
        <Type>train</Type>
        <ArrivalState no="13">
          <Type>normal</Type>
          <Datetime operation="today">2020-10-10T11:50:00+09:00</Datetime>
        </ArrivalState>
        <Destination>千葉</Destination>
        <TimeReliability>onTimetable</TimeReliability>
        <DepartureState no="2">
          <Type>normal</Type>
          <Datetime operation="today">2020-10-10T11:40:00+09:00</Datetime>
        </DepartureState>
        <LineSymbol code="9">
          <Name>JB</Name>
        </LineSymbol>
        :
      </Line>
      <Point index="2">
        <Station code="22741">
          <Name>新宿</Name>
          <Type>train</Type>
          <Yomi>しんじゅく</Yomi>
        </Station>
        :
      </Point>
      <Line stopStationCount="2" timeOnBoard="7" track="railway" index="2" distance="34" ...>
        <Name>JR山手線内回り・渋谷・品川方面</Name>
        <Type>train</Type>
        <ArrivalState no="2">
          <Type>normal</Type>
          <Datetime operation="today">2020-10-10T11:57:00+09:00</Datetime>
        </ArrivalState>
        <Destination>大崎</Destination>
        <TimeReliability>onTimetable</TimeReliability>
        <DepartureState no="14">
          <Type>normal</Type>
          <Datetime operation="today">2020-10-10T11:50:00+09:00</Datetime>
        </DepartureState>
        :
      </Line>
      <Point index="3">
        <Station code="22715">
          <Name>渋谷</Name>
          <Type>train</Type>
          <Yomi>しぶや</Yomi>
        </Station>
        :
      </Point>
    </Route>
    :
  </Course>
  <Course dataType="onTimetable">
    <Price kind="FareSummary">
    :
    </Price>
    <Route timeOther="4" timeOnBoard="16" index="3" distance="92" timeWalk="0" transferCount="1" ...>
      <Point index="1">
        <Station code="22671">
          <Name>高円寺</Name>
          <Type>train</Type>
          <Yomi>こうえんじ</Yomi>
        </Station>
      </Point>
      <Line stopStationCount="3" timeOnBoard="10" index="1" distance="58" ...>
        <Name>JR総武線・千葉行</Name>
        <Type>train</Type>
        <ArrivalState no="13">
          <Type>normal</Type>
          <Datetime operation="today">2020-10-10T11:50:00+09:00</Datetime>
        </ArrivalState>
        <Destination>千葉</Destination>
        <TimeReliability>onTimetable</TimeReliability>
        <DepartureState no="2">
          <Type>normal</Type>
          <Datetime operation="today">2020-10-10T11:40:00+09:00</Datetime>
        </DepartureState>
        :
      </Line>
      <Point index="2">
        <Station code="22741">
          <Name>新宿</Name>
          <Type>train</Type>
          <Yomi>しんじゅく</Yomi>
        </Station>
        :
      </Point>
      <Line stopStationCount="2" timeOnBoard="6" index="2" distance="34" ...>
        <Name>JR山手線内回り・渋谷・品川方面</Name>
        <Type>train</Type>
        <ArrivalState no="2">
          <Type>normal</Type>
          <Datetime operation="today">2020-10-10T12:00:00+09:00</Datetime>
        </ArrivalState>
        <Destination>大崎</Destination>
        <TimeReliability>onTimetable</TimeReliability>
        <DepartureState no="14">
          <Type>normal</Type>
          <Datetime operation="today">2020-10-10T11:54:00+09:00</Datetime>
        </DepartureState>
        :
      </Line>
      <Point index="3">
        <Station code="22715">
          <Name>渋谷</Name>
          <Type>train</Type>
          <Yomi>しぶや</Yomi>
        </Station>
        :
      </Point>
    </Route>
    :
  </Course>
  <Course dataType="onTimetable">
    <Price kind="FareSummary">
    :
    </Price>
    <Route timeOther="7" timeOnBoard="17" index="4" distance="92" timeWalk="0" transferCount="1" ...>
      <Point index="1">
        <Station code="22671">
          <Name>高円寺</Name>
          <Type>train</Type>
          <Yomi>こうえんじ</Yomi>
        </Station>
        :
      </Point>
      <Line stopStationCount="3" timeOnBoard="10" index="1" distance="58" ...>
        <Name>JR総武線・千葉行</Name>
        <Type>train</Type>
        <ArrivalState no="13">
          <Type>normal</Type>
          <Datetime operation="today">2020-10-10T11:50:00+09:00</Datetime>
        </ArrivalState>
        <Destination>千葉</Destination>
        <TimeReliability>onTimetable</TimeReliability>
        <DepartureState no="2">
          <Type>normal</Type>
          <Datetime operation="today">2020-10-10T11:40:00+09:00</Datetime>
        </DepartureState>
        :
      </Line>
      <Point index="2">
        <Station code="22741">
          <Name>新宿</Name>
          <Type>train</Type>
          <Yomi>しんじゅく</Yomi>
        </Station>
        :
      </Point>
      <Line stopStationCount="2" timeOnBoard="7" index="2" distance="34" ...>
        <Name>JR山手線内回り・渋谷・品川方面</Name>
        <Type>train</Type>
        <ArrivalState no="2">
          <Type>normal</Type>
          <Datetime operation="today">2020-10-10T12:04:00+09:00</Datetime>
        </ArrivalState>
        <Destination>大崎</Destination>
        <TimeReliability>onTimetable</TimeReliability>
        <DepartureState no="14">
          <Type>normal</Type>
          <Datetime operation="today">2020-10-10T11:57:00+09:00</Datetime>
        </DepartureState>
        :
      </Line>
      <Point index="3">
        <Station code="22715">
          <Name>渋谷</Name>
          <Type>train</Type>
          <Yomi>しぶや</Yomi>
        </Station>
        :
      </Point>
    </Route>
    :
  </Course>
  <Course dataType="onTimetable">
    <Price kind="FareSummary">
    :
    </Price>
    <Route timeOther="10" timeOnBoard="17" index="5" distance="92" timeWalk="0" transferCount="1" ...>
      <Point index="1">
        <Station code="22671">
          <Name>高円寺</Name>
          <Type>train</Type>
          <Yomi>こうえんじ</Yomi>
        </Station>
        :
      </Point>
      <Line stopStationCount="3" timeOnBoard="10" index="1" distance="58" ...>
        <Name>JR総武線・千葉行</Name>
        <Type>train</Type>
        <ArrivalState no="13">
          <Type>normal</Type>
          <Datetime operation="today">2020-10-10T11:50:00+09:00</Datetime>
        </ArrivalState>
        <Destination>千葉</Destination>
        <TimeReliability>onTimetable</TimeReliability>
        <DepartureState no="2">
          <Type>normal</Type>
          <Datetime operation="today">2020-10-10T11:40:00+09:00</Datetime>
        </DepartureState>
        :
      </Line>
      <Point index="2">
        <Station code="22741">
          <Name>新宿</Name>
          <Type>train</Type>
          <Yomi>しんじゅく</Yomi>
        </Station>
        :
      </Point>
      <Line stopStationCount="2" timeOnBoard="7" index="2" distance="34" ...>
        <Name>JR山手線内回り・渋谷・品川方面</Name>
        <Type>train</Type>
        <ArrivalState no="2">
          <Type>normal</Type>
          <Datetime operation="today">2020-10-10T12:07:00+09:00</Datetime>
        </ArrivalState>
        <Destination>大崎</Destination>
        <TimeReliability>onTimetable</TimeReliability>
        <DepartureState no="14">
          <Type>normal</Type>
          <Datetime operation="today">2020-10-10T12:00:00+09:00</Datetime>
        </DepartureState>
        :
      </Line>
      <Point index="3">
        <Station code="22715">
          <Name>渋谷</Name>
          <Type>train</Type>
          <Yomi>しぶや</Yomi>
        </Station>
        :
      </Point>
    </Route>
    :
  </Course>
</ResultSet>
GET /v1/json/search/course/pattern?key=アクセスキーを入力してください&serializeData=シリアライズデータを入力してください&sectionIndex=2&date=20201010&time=1140&answerCount=5
{
    "ResultSet": {
        "apiVersion": "1.27.0.0",
        "engineVersion": "202010_04a",
        "Course": [
            {
                "dataType": "onTimetable",
                "Price": [
                    :
                ],
                "Route": {
                    "timeOther": "7",
                    "distance": "92",
                    "timeWalk": "0",
                    "transferCount": "1",
                    :
                    "Line": [
                        {
                            "stopStationCount": "3",
                            "timeOnBoard": "10",
                            "distance": "58",
                            "trainID": "1132B",
                            "Name": "JR総武線・千葉行",
                            "Type": "train",
                            "ArrivalState": {
                                "no": "13",
                                "Type": "normal",
                                "Datetime": {
                                    "text": "2020-10-10T11:40:00+09:00",
                                    "operation": "today"
                                }
                            },
                            "Destination": "千葉",
                            "TimeReliability": "onTimetable",
                            "DepartureState": {
                                "no": "2",
                                "Type": "normal",
                                "Datetime": {
                                    "text": "2020-10-10T11:30:00+09:00",
                                    "operation": "today"
                                }
                            },
                            :
                        },
                        {
                            "stopStationCount": "2",
                            "timeOnBoard": "7",
                            "distance": "34",
                            "Name": "JR山手線内回り・渋谷・品川方面",
                            "Type": "train",
                            "ArrivalState": {
                                "no": "2",
                                "Type": "normal",
                                "Datetime": {
                                    "text": "2020-10-10T11:54:00+09:00",
                                    "operation": "today"
                                }
                            },
                            "Destination": "大崎",
                            "TimeReliability": "onTimetable",
                            "DepartureState": {
                                "no": "14",
                                "Type": "normal",
                                "Datetime": {
                                    "text": "2020-10-10T11:47:00+09:00",
                                    "operation": "today"
                                }
                            },
                            :
                        }
                    ],
                    "Point": [
                        {
                            "Station": {
                                "code": "22671",
                                "Name": "高円寺",
                                "Type": "train",
                                "Yomi": "こうえんじ"
                            },
                            :
                        },
                        {
                            "Station": {
                                "code": "22741",
                                "Name": "新宿",
                                "Type": "train",
                                "Yomi": "しんじゅく"
                            },
                            :
                        },
                        {
                            "Station": {
                                "code": "22715",
                                "Name": "渋谷",
                                "Type": "train",
                                "Yomi": "しぶや"
                            },
                            :
                        }
                    ]
                    :
                }
                :
            },
            {
                "dataType": "onTimetable",
                "Price": [
                    :
                ],
                "Route": {
                    "timeOther": "0",
                    "timeOnBoard": "17",
                    "distance": "92",
                    "transferCount": "1",
                    "Line": [
                        {
                            "stopStationCount": "3",
                            "timeOnBoard": "10",
                            "distance": "58",
                            "Name": "JR総武線・千葉行",
                            "Type": "train",
                            "ArrivalState": {
                                "no": "13",
                                "Type": "normal",
                                "Datetime": {
                                    "text": "2020-10-10T11:50:00+09:00",
                                    "operation": "today"
                                }
                            },
                            "Destination": "千葉",
                            "TimeReliability": "onTimetable",
                            "DepartureState": {
                                "no": "2",
                                "Type": "normal",
                                "Datetime": {
                                    "text": "2020-10-10T11:40:00+09:00",
                                    "operation": "today"
                                }
                            },
                            :
                        },
                        {
                            "stopStationCount": "2",
                            "timeOnBoard": "7",
                            "distance": "34",
                            "Name": "JR山手線内回り・渋谷・品川方面",
                            "Type": "train",
                            "ArrivalState": {
                                "no": "2",
                                "Type": "normal",
                                "Datetime": {
                                    "text": "2020-10-10T11:57:00+09:00",
                                    "operation": "today"
                                }
                            },
                            "Destination": "大崎",
                            "TimeReliability": "onTimetable",
                            "DepartureState": {
                                "no": "14",
                                "Type": "normal",
                                "Datetime": {
                                    "text": "2020-10-10T11:50:00+09:00",
                                    "operation": "today"
                                }
                            },
                            :
                        }
                    ],
                    "Point": [
                        {
                            "Station": {
                                "code": "22671",
                                "Name": "高円寺",
                                "Type": "train",
                                "Yomi": "こうえんじ"
                            },
                            :
                        },
                        {
                            "Station": {
                                "code": "22741",
                                "Name": "新宿",
                                "Type": "train",
                                "Yomi": "しんじゅく"
                            },
                            :
                        },
                        {
                            "Station": {
                                "code": "22715",
                                "Name": "渋谷",
                                "Type": "train",
                                "Yomi": "しぶや"
                            },
                            :
                        }
                    ]
                    :
                }
                :
            },
            {
                "dataType": "onTimetable",
                "Price": [
                    :
                ],
                "Route": {
                    "timeOther": "4",
                    "timeOnBoard": "16",
                    "distance": "92",
                    "Line": [
                        {
                            "stopStationCount": "3",
                            "timeOnBoard": "10",
                            "distance": "58",
                            "Name": "JR総武線・千葉行",
                            "Type": "train",
                            "ArrivalState": {
                                "no": "13",
                                "Type": "normal",
                                "Datetime": {
                                    "text": "2020-10-10T11:50:00+09:00",
                                    "operation": "today"
                                }
                            },
                            "Destination": "千葉",
                            "TimeReliability": "onTimetable",
                            "DepartureState": {
                                "no": "2",
                                "Type": "normal",
                                "Datetime": {
                                    "text": "2020-10-10T11:40:00+09:00",
                                    "operation": "today"
                                }
                            },
                            :
                        },
                        {
                            "stopStationCount": "2",
                            "timeOnBoard": "6",
                            "distance": "34",
                            "Name": "JR山手線内回り・渋谷・品川方面",
                            "Type": "train",
                            "ArrivalState": {
                                "no": "2",
                                "Type": "normal",
                                "Datetime": {
                                    "text": "2020-10-10T12:00:00+09:00",
                                    "operation": "today"
                                }
                            },
                            "Destination": "大崎",
                            "TimeReliability": "onTimetable",
                            "DepartureState": {
                                "no": "14",
                                "Type": "normal",
                                "Datetime": {
                                    "text": "2020-10-10T11:54:00+09:00",
                                    "operation": "today"
                                }
                            },
                            :
                        }
                    ],
                    "Point": [
                        {
                            "Station": {
                                "code": "22671",
                                "Name": "高円寺",
                                "Type": "train",
                                "Yomi": "こうえんじ"
                            },
                            :
                        },
                        {
                            "Station": {
                                "code": "22741",
                                "Name": "新宿",
                                "Type": "train",
                                "Yomi": "しんじゅく"
                            },
                            :
                        },
                        {
                            "Station": {
                                "code": "22715",
                                "Name": "渋谷",
                                "Type": "train",
                                "Yomi": "しぶや"
                            },
                            :
                        }
                    ]
                    :
                }
                :
            },
            {
                "dataType": "onTimetable",
                "Price": [
                    :
                ],
                "Route": {
                    "timeOther": "7",
                    "timeOnBoard": "17",
                    "distance": "92",
                    "transferCount": "1",
                    "Line": [
                        {
                            "stopStationCount": "3",
                            "timeOnBoard": "10",
                            "distance": "58",
                            "Name": "JR総武線・千葉行",
                            "Type": "train",
                            "ArrivalState": {
                                "no": "13",
                                "Type": "normal",
                                "Datetime": {
                                    "text": "2020-10-10T11:50:00+09:00",
                                    "operation": "today"
                                }
                            },
                            "Destination": "千葉",
                            "TimeReliability": "onTimetable",
                            "DepartureState": {
                                "no": "2",
                                "Type": "normal",
                                "Datetime": {
                                    "text": "2020-10-10T11:40:00+09:00",
                                    "operation": "today"
                                }
                            },
                            :
                        },
                        {
                            "stopStationCount": "2",
                            "timeOnBoard": "7",
                            "distance": "34",
                            "Name": "JR山手線内回り・渋谷・品川方面",
                            "Type": "train",
                            "ArrivalState": {
                                "no": "2",
                                "Type": "normal",
                                "Datetime": {
                                    "text": "2020-10-10T12:04:00+09:00",
                                    "operation": "today"
                                }
                            },
                            "Destination": "大崎",
                            "TimeReliability": "onTimetable",
                            "DepartureState": {
                                "no": "14",
                                "Type": "normal",
                                "Datetime": {
                                    "text": "2020-10-10T11:57:00+09:00",
                                    "operation": "today"
                                }
                            },
                            :
                        }
                    ],
                    "Point": [
                        {
                            "Station": {
                                "code": "22671",
                                "Name": "高円寺",
                                "Type": "train",
                                "Yomi": "こうえんじ"
                            },
                            :
                        },
                        {
                            "Station": {
                                "code": "22741",
                                "Name": "新宿",
                                "Type": "train",
                                "Yomi": "しんじゅく"
                            },
                            :
                        },
                        {
                            "Station": {
                                "code": "22715",
                                "Name": "渋谷",
                                "Type": "train",
                                "Yomi": "しぶや"
                            },
                            :
                        }
                    ]
                    :
                }
                :
            },
            {
                "dataType": "onTimetable",
                "Price": [
                    :
                ],
                "Route": {
                    "timeOther": "10",
                    "timeOnBoard": "17",
                    "distance": "92",
                    "Line": [
                        {
                            "stopStationCount": "3",
                            "timeOnBoard": "10",
                            "distance": "58",
                            "Name": "JR総武線・千葉行",
                            "Type": "train",
                            "ArrivalState": {
                                "no": "13",
                                "Type": "normal",
                                "Datetime": {
                                    "text": "2020-10-10T11:50:00+09:00",
                                    "operation": "today"
                                }
                            },
                            "Destination": "千葉",
                            "TimeReliability": "onTimetable",
                            "DepartureState": {
                                "no": "2",
                                "Type": "normal",
                                "Datetime": {
                                    "text": "2020-10-10T11:40:00+09:00",
                                    "operation": "today"
                                }
                            },
                            :
                        },
                        {
                            "stopStationCount": "2",
                            "timeOnBoard": "7",
                            "distance": "34",
                            "Name": "JR山手線内回り・渋谷・品川方面",
                            "Type": "train",
                            "ArrivalState": {
                                "no": "2",
                                "Type": "normal",
                                "Datetime": {
                                    "text": "2020-10-10T12:07:00+09:00",
                                    "operation": "today"
                                }
                            },
                            "Destination": "大崎",
                            "TimeReliability": "onTimetable",
                            "DepartureState": {
                                "no": "14",
                                "Type": "normal",
                                "Datetime": {
                                    "text": "2020-10-10T12:00:00+09:00",
                                    "operation": "today"
                                }
                            },
                            :
                        }
                    ],
                    "Point": [
                        {
                            "Station": {
                                "code": "22671",
                                "Name": "高円寺",
                                "Type": "train",
                                "Yomi": "こうえんじ"
                            },
                            :
                        },
                        {
                            "Station": {
                                "code": "22741",
                                "Name": "新宿",
                                "Type": "train",
                                "Yomi": "しんじゅく"
                            },
                            :
                        },
                        {
                            "Station": {
                                "code": "22715",
                                "Name": "渋谷",
                                "Type": "train",
                                "Yomi": "しぶや"
                            },
                            :
                        }
                    ]
                }
            }
        ]
    }
}
ページ上部へ

デベロッパーファーストの

経路検索・運賃計算API