Skip to content

Google Cloud Storage - Using GCS Bucket as a OTP Data Source

Contact Info

  • Thomas Gran, Entur, Norway

Changelog

OTP 2.0

  • Initial implementation to access Google Cloud Storage (read and write). (December 2019)

Documentation

To enable this turn on the feature GoogleCloudStorage. OTP can load or store artifacts from one or more Google Cloud Storge locations. Each artifact must be configured in the build-config.json: See BuildConfig on how to configure artifacts.

Example (build-config.json):

{
  "gcsCredentials": "file:///Users/alf/secret/otp-test-1234567890.json",
  "graph": "gs://otp-test-bucket/a/b/graph.obj",
  "buildReportDir": "gs://otp-test-bucket/a/b/np-report",
  "osm": [
    {
      "source": "gs://otp-test-bucket/a/b/northpole.pbf"
    }
    ],
  "dem": [
    {
      "source": "gs://otp-test-bucket/a/b/northpole.dem.tif"
    }
    ],
  "transitFeeds": [
    {
      "type": "gtfs",
      "source": "gs://otp-test-bucket/a/b/gtfs.zip"
    }
    ]
}