ID でステーションを検索します

ユーザーストーリー

特定のステーション ID を使用してステーションを検索します。

リクエスト

1 つの GET リクエストでステーションを検索します。 唯一の必須パラメータ ids は、ステーション ID のカンマ区切りリストを指定します。 次のリクエストは、 ID を指定してステーションを検索します。

GET https://transit.hereapi.com/v8/stations
    ?ids=415712984
Authorization: Bearer 

現在使用可能な認証方法の詳細について は、『 Identity & Access Management 開発者ガイド』を参照してください。

レスポンス

リクエストに対する応答には、次の情報ブロックが含まれています。

  • 1 つのクエリーでは、最大 50 のステーション ID を使用できます。
  • stations 応答オブジェクトの各ステーション要素には、次の上位レベルの要素が含まれています。
    • place 名前、場所、 ID 、タイプなどのステーション / ストップ情報を使用します。
    • transports 駅へ向かう交通機関を利用した情報が提供されている。
    • accessPoints 駅 / 停留所へのアクセスに使用されるポイントに関する情報が表示されます。
{
  "stations": [
    {
      "place": {
        "name": "Roma Termini",
        "type": "station",
        "location": {
          "lat": 41.90054,
          "lng": 12.502168
        },
        "id": "415712984"
      },
      "accessPoints": [
        {
          "location": {
            "lat": 52.531679,
            "lng": 13.381779
          },
          "name": "North Entrance",
          "type": "accessPoint"
        },
        {
          "location": {
            "lat": 52.531678,
            "lng": 13.381778
          },
          "name": "West Entrance",
          "type": "accessPoint"
        },
        {
          "location": {
            "lat": 52.531672,
            "lng": 13.381773
          },
          "name": "Main Entrance",
          "type": "accessPoint"
        }
      ]
    }
  ]
}

」に一致する結果は 件です

    」に一致する結果はありません