Fare

The total fare for a transit route

EnvironmentGeocodingGeolocationMapsNavigationPlacesRoutingSolar

Properties

Name Type Description
currency string ISO 4217 currency code
value number The total fare amount in the specified currency
text string Human-readable fare text
View JSON Schema on GitHub

JSON Schema

google-maps-fare-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Fare",
  "title": "Fare",
  "type": "object",
  "description": "The total fare for a transit route",
  "properties": {
    "currency": {
      "type": "string",
      "description": "ISO 4217 currency code",
      "example": "USD"
    },
    "value": {
      "type": "number",
      "description": "The total fare amount in the specified currency",
      "example": 6.5
    },
    "text": {
      "type": "string",
      "description": "Human-readable fare text",
      "example": "$6.50"
    }
  },
  "required": [
    "currency",
    "value",
    "text"
  ]
}