TextValuePair

A text and numeric value pair used for distance, duration, and fare amounts

EnvironmentGeocodingGeolocationMapsNavigationPlacesRoutingSolar

Properties

Name Type Description
text string Human-readable text representation
value number Numeric value. For distance, expressed in meters. For duration, expressed in seconds. For fare, expressed in the currency indicated.
View JSON Schema on GitHub

JSON Schema

google-maps-directions-text-value-pair-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "TextValuePair",
  "type": "object",
  "description": "A text and numeric value pair used for distance, duration, and fare amounts",
  "properties": {
    "text": {
      "type": "string",
      "description": "Human-readable text representation"
    },
    "value": {
      "type": "number",
      "description": "Numeric value. For distance, expressed in meters. For duration, expressed in seconds. For fare, expressed in the currency indicated."
    }
  }
}