The units come from the root manifest. For OTG (Aka SVF2) look for the otg_manifest.json file. (see screenshot)
rootManifest.metadata["distance unit"].value // e.g., "foot", "meter", "inch"
rootManifest.metadata["default display unit"].value // e.g., "inch"