# DataSource

DataSource オブジェクトは、追加の GTFS (opens new window) (General Transit Feed Specification) および GTFS Realtime データソースを指定するためのオブジェクトで、Map のコンストラクタオプション dataSources に配列として指定します。

注意

これは開発中の実験的な機能であり、変更される可能性があることに注意してください。

Object (opens new window)

# プロパティ

# color (string (opens new window))

路線および車両の表示に使用する色です。# から始まる16進数のカラーコードで指定します。

# gtfsUrl (string (opens new window))

GTFS データセットの zip ファイル (opens new window)の URL を指定します。GTFS データセットには少なくとも次のファイルが含まれている必要があります。

  • agency.txt
  • stops.txt
  • routes.txt
  • trips.txt
  • stop_times.txt
  • calendar.txt または calendar_dates.txt
  • shapes.txt

# vehiclePositionUrl (string (opens new window))

GTFS Realtime の VehiclePosition フィード (opens new window)の URL を指定します。省略した場合は、時刻表通りの運行が行われます。

最終更新日時: 2026/1/30 10:51:16