Click or drag to resize

UNITS Statement

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
UNITS Statement

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):

  • OUTPUTSets the filename of the output GBFS file
    DATASETSets an arbitrary name for this dataset
    COPYRIGHTSets a copyright for this dataset
    COUNTRYSets the name of the country that this dataset represents
    UNITSSets the unit system that this dataset uses - Metric or Imperial
    REGIONSSets the region information for this dataset

Syntax

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.

Alchemy
UNITS value;

Nomenclature

valueOne of: Metric, Imperial, ImperialFeet or ImperialYards.

Example

Alchemy
UNITS Metric;