Amazon Mechanical Turk · JSON Structure

Amazon Mechanical Turk Locale Structure

The Locale data structure represents a geographical region or location.

Type: object Properties: 2 Required: 1
CrowdsourcingHuman IntelligenceLaborMachine LearningTasks

Locale is a JSON Structure definition published by Amazon Mechanical Turk, describing 2 properties, of which 1 is required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

Country Subdivision

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-mechanical-turk/refs/heads/main/json-structure/amazon-mechanical-turk-locale-structure.json",
  "name": "Locale",
  "description": "The Locale data structure represents a geographical region or location.",
  "type": "object",
  "properties": {
    "Country": {
      "allOf": [
        {
          "$ref": "#/components/schemas/CountryParameters"
        },
        {
          "description": " The country of the locale. Must be a valid ISO 3166 country code. For example, the code US refers to the United States of America. "
        }
      ]
    },
    "Subdivision": {
      "allOf": [
        {
          "$ref": "#/components/schemas/CountryParameters"
        },
        {
          "description": "The state or subdivision of the locale. A valid ISO 3166-2 subdivision code. For example, the code WA refers to the state of Washington."
        }
      ]
    }
  },
  "required": [
    "Country"
  ]
}