FormattableText

Text with structured formatting information

EnvironmentGeocodingGeolocationMapsNavigationPlacesRoutingSolar

Properties

Name Type Description
text string The full text string
matches array List of string ranges identifying where the input request matched in the text
View JSON Schema on GitHub

JSON Schema

google-maps-formattabletext-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/FormattableText",
  "title": "FormattableText",
  "type": "object",
  "description": "Text with structured formatting information",
  "properties": {
    "text": {
      "type": "string",
      "description": "The full text string",
      "example": "example_value"
    },
    "matches": {
      "type": "array",
      "description": "List of string ranges identifying where the input request matched in the text",
      "items": {
        "type": "object",
        "properties": {
          "startOffset": {
            "type": "integer"
          },
          "endOffset": {
            "type": "integer"
          }
        }
      },
      "example": []
    }
  }
}