Skip to content
HALOWERK

Text Tools

locale length preference ladder

Localized length units returns the magnitude thresholds and units defined for a region and use case. Use it when an agent needs choosing units for a translated interface.

POST https://text.halowerk.com/v1/locale-length-preference-ladder

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
regionstringYes
usagestringYes
Show full input schema
{
  "type": "object",
  "properties": {
    "region": {
      "type": "string",
      "maxLength": 12,
      "minLength": 1
    },
    "usage": {
      "type": "string",
      "maxLength": 40,
      "minLength": 1
    }
  },
  "required": [
    "region",
    "usage"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "region": "US",
  "usage": "road"
}

Result & documentation

Show published result schema
{
  "type": "object",
  "required": [
    "measured_at",
    "source",
    "data",
    "limitations"
  ],
  "properties": {
    "measured_at": {
      "type": "string"
    },
    "source": {
      "type": "object",
      "required": [
        "reference",
        "retrieved_at"
      ],
      "properties": {
        "reference": {
          "type": "string"
        },
        "retrieved_at": {
          "type": "string"
        }
      }
    },
    "data": {
      "type": "object",
      "properties": {
        "region_rule": {
          "type": "string"
        },
        "tiers": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "unit": {
                "type": "string"
              },
              "from_metres": {
                "type": "number"
              }
            },
            "required": [
              "unit",
              "from_metres"
            ]
          }
        }
      },
      "required": [
        "region_rule",
        "tiers"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.

More endpoints in this hub

All endpoints in this hub →