The UNITS statement sets the units (Imperial or metric) that are used in the created GBFS file.
The UNITS attribute is written into the created GBFS file. Specifying the units to use is important if your data includes any speed limit information, as the units will determine whether values are interpreted as miles per hour or kilometers per hour. If you do not specify the units, a value of UnitSystem.Unknown is assigned to the dataset.
In addition to determining how speed data is interpreted, if you have also set the COUNTRY attribute, then the units you specify for this attribute are returned by the GetUnitSystem method when the value of the COUNTRY attribute is supplied as an argument.
The UNITS 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 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 UNITS statement must be placed at the start of the .alchemy import file alongside any other attribute statements, but before any non-attribute statements. Order of attribute statements is important.
|value||One of: Metric, Imperial, ImperialFeet or ImperialYards.|