OUTPUT Statement |
The OUTPUT statement sets the name (and location) of the created GBFS (or GBTX) file. The extension '.gbfs' will automatically be appended to the generated GBFS file. If you do not supply an OUTPUT attribute, the generated GBFS file will be named 'user.gbfs' and will be created in the current directory.
To generate a GBTX (transactional) format file (extension '.gbtx') rather than a GBFS, specify 'as GBTX' within the OUTPUT statement.
The OUTPUT attribute is one of the Attributes that can optionally be specified at the start of the import file. All of these attributes are optional, but if you include any, they must be specified in the following order (OUTPUT first, REGIONS last):
OUTPUT | Sets the filename of the output GBFS/GBTX file |
DATASET | Sets an arbitrary name for this dataset |
COPYRIGHT | Sets a copyright for this dataset |
COUNTRY | Sets the name of the country that this dataset represents |
UNITS | Sets the unit system that this dataset uses - Metric or Imperial |
REGIONS | Sets the region information for this dataset |
The OUTPUT statement must be placed at the start of the .alchemy import file before any other attribute statements, and before any non-attribute statements. Order of the attribute statements is important.
OUTPUT value;
value | The desired name and location for the created data files. |
OUTPUT "C:\myData\NewZealand";
This instructs the script to create the GBFS file 'NewZealand.gbfs' in the 'C:\myData' directory.
To generate a GBTX:
OUTPUT "C:\myData\NewZealand" AS GBTX;
This instructs the script to create a GBTX file 'NewZealand.gbtx' in the 'C:\myData' directory.