Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 922 Bytes

File metadata and controls

31 lines (25 loc) · 922 Bytes

Build pmtile for a specific GTFS dataset

This task generates the pmtiles for a provided dataset. pmtiles are used for displaying routes and stops in the UI

Task ID

Use task Id: build_pmtiles

Usage

The function receive the following payload:

   {
      "feed_stable_id": str, 
      "dataset_stable_id*: str 
   }

Example:

   {
      "feed_stable_id": "mdb-1004", 
      "dataset_stable_id": "mdb-1004-202507081807"
   }

The task will verify that the dataset stable id starts with the feed stable id (mdb-1004 in our example)

GCP environment variables

The function uses the following environment variables:

  • ENV: The environment to use. It can be dev, staging or prod. Default is dev.
  • DATASETS_BUCKET_NAME: The bucket name where the datasets are stored. The task will fail if this is not defined. The variable has to include the suffix, like -dev, -qa or -prod.