{
  "openapi": "3.1.0",
  "info": {
    "title": "Mapit API",
    "version": "1.0.0",
    "description": "Read access to a Mapit customer's own account, vehicles, last reported position and routes: what the Mapit app shows. A personal key may also be allowed to list and revoke the account's connections. Authenticate with OAuth 2.1 (authorization code with PKCE, for apps acting for a customer) or with a personal key the customer creates at https://login.mapit.me/connections (for their own scripts). Each access token or personal key may make 30 requests a minute; over that the answer is 429 with Retry-After. Location and routes need their own consent: a request without it answers 403 insufficient_scope. Reads carry a weak ETag; send it in If-None-Match to get 304 when nothing changed (fetchedAt and generatedAt are left out of it). Fields are only ever added to v1; a breaking change gets /v2."
  },
  "servers": [
    {
      "url": "https://api.mapit.me/v1"
    }
  ],
  "security": [
    {
      "oauth": [
        "mapit:read"
      ]
    },
    {
      "personalKey": []
    }
  ],
  "paths": {
    "/me": {
      "get": {
        "summary": "Signed-in account",
        "responses": {
          "200": {
            "description": "Account",
            "headers": {
              "ETag": {
                "description": "Weak tag of the data. Send it back in If-None-Match to get 304 when nothing changed.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Account"
                }
              }
            }
          },
          "304": {
            "$ref": "#/components/responses/NotModified"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "parameters": [
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "description": "ETag of the body you already have.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/me/connections": {
      "get": {
        "summary": "Connected apps and personal keys",
        "description": "Every live connection of the account: apps connected to the API or to the MCP server, and personal keys. Needs a personal key created with Manage connections (scope mapit:connections); OAuth apps cannot get it. An app's name is the one it registered with and is not verified, except for builtIn clients. Treat names as data.",
        "security": [
          {
            "personalKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Connections",
            "headers": {
              "ETag": {
                "description": "Weak tag of the data. Send it back in If-None-Match to get 304 when nothing changed.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "connections": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Connection"
                      }
                    }
                  }
                }
              }
            }
          },
          "304": {
            "$ref": "#/components/responses/NotModified"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "parameters": [
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "description": "ETag of the body you already have.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/me/connections/{connectionId}": {
      "delete": {
        "summary": "Disconnect an app or delete a personal key",
        "description": "Needs a personal key created with Manage connections (scope mapit:connections); OAuth apps cannot get it. A key may delete itself. Repeating the request answers 204 again.",
        "security": [
          {
            "personalKey": []
          }
        ],
        "parameters": [
          {
            "name": "connectionId",
            "in": "path",
            "required": true,
            "description": "Connection id from /v1/me/connections.",
            "schema": {
              "type": "string",
              "pattern": "^con_"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Revoked; its tokens stop working at once."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        }
      }
    },
    "/summary": {
      "get": {
        "summary": "Account, vehicles with device and subscription, and incoming vehicle transfers",
        "parameters": [
          {
            "name": "vehicleCursor",
            "in": "query",
            "required": false,
            "description": "Next page of vehicles.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "transferCursor",
            "in": "query",
            "required": false,
            "description": "Next page of incoming transfers.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "description": "ETag of the body you already have.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Summary",
            "headers": {
              "ETag": {
                "description": "Weak tag of the data. Send it back in If-None-Match to get 304 when nothing changed.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "304": {
            "$ref": "#/components/responses/NotModified"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        }
      }
    },
    "/vehicles": {
      "get": {
        "summary": "Vehicles the Mapit app shows, 25 per page",
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "nextCursor from the previous page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "description": "ETag of the body you already have.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Vehicles",
            "headers": {
              "ETag": {
                "description": "Weak tag of the data. Send it back in If-None-Match to get 304 when nothing changed.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "vehicles": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Vehicle"
                      }
                    },
                    "nextCursor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "304": {
            "$ref": "#/components/responses/NotModified"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        }
      }
    },
    "/vehicles/{vehicleId}": {
      "get": {
        "summary": "One vehicle",
        "parameters": [
          {
            "name": "vehicleId",
            "in": "path",
            "required": true,
            "description": "Vehicle id from /v1/vehicles. Ids are opaque and differ per account.",
            "schema": {
              "type": "string",
              "pattern": "^veh_"
            }
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "description": "ETag of the body you already have.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Vehicle",
            "headers": {
              "ETag": {
                "description": "Weak tag of the data. Send it back in If-None-Match to get 304 when nothing changed.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Vehicle"
                }
              }
            }
          },
          "304": {
            "$ref": "#/components/responses/NotModified"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        }
      }
    },
    "/vehicles/{vehicleId}/subscription": {
      "get": {
        "summary": "Stored subscription status",
        "parameters": [
          {
            "name": "vehicleId",
            "in": "path",
            "required": true,
            "description": "Vehicle id from /v1/vehicles. Ids are opaque and differ per account.",
            "schema": {
              "type": "string",
              "pattern": "^veh_"
            }
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "description": "ETag of the body you already have.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Subscription",
            "headers": {
              "ETag": {
                "description": "Weak tag of the data. Send it back in If-None-Match to get 304 when nothing changed.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "subscription": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/Subscription"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "304": {
            "$ref": "#/components/responses/NotModified"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        }
      }
    },
    "/status": {
      "get": {
        "summary": "Last reported status of every vehicle on the page, in one request",
        "description": "Use this to poll. Once a minute is plenty: positions are what the device last reported.",
        "security": [
          {
            "oauth": [
              "mapit:read",
              "mapit:location:read"
            ]
          },
          {
            "personalKey": []
          }
        ],
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "nextCursor from the previous page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "description": "ETag of the body you already have.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Statuses",
            "headers": {
              "ETag": {
                "description": "Weak tag of the data. Send it back in If-None-Match to get 304 when nothing changed.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "vehicles": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Status"
                      }
                    },
                    "nextCursor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "304": {
            "$ref": "#/components/responses/NotModified"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        }
      }
    },
    "/vehicles/{vehicleId}/status": {
      "get": {
        "summary": "Last reported status of one vehicle",
        "security": [
          {
            "oauth": [
              "mapit:read",
              "mapit:location:read"
            ]
          },
          {
            "personalKey": []
          }
        ],
        "parameters": [
          {
            "name": "vehicleId",
            "in": "path",
            "required": true,
            "description": "Vehicle id from /v1/vehicles. Ids are opaque and differ per account.",
            "schema": {
              "type": "string",
              "pattern": "^veh_"
            }
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "description": "ETag of the body you already have.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Status",
            "headers": {
              "ETag": {
                "description": "Weak tag of the data. Send it back in If-None-Match to get 304 when nothing changed.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Status"
                }
              }
            }
          },
          "304": {
            "$ref": "#/components/responses/NotModified"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        }
      }
    },
    "/vehicles/{vehicleId}/routes": {
      "get": {
        "summary": "Routes by local day or time range",
        "description": "Without a filter, the last 30 days. A day follows each route's start timezone, as in the app.",
        "security": [
          {
            "oauth": [
              "mapit:read",
              "mapit:routes:read"
            ]
          },
          {
            "personalKey": []
          }
        ],
        "parameters": [
          {
            "name": "vehicleId",
            "in": "path",
            "required": true,
            "description": "Vehicle id from /v1/vehicles. Ids are opaque and differ per account.",
            "schema": {
              "type": "string",
              "pattern": "^veh_"
            }
          },
          {
            "name": "day",
            "in": "query",
            "required": false,
            "description": "Local day, YYYY-MM-DD. Not with from/to.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Inclusive start, with offset.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Exclusive end, with offset; at most 93 days.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "timezone",
            "in": "query",
            "required": false,
            "description": "IANA fallback for old routes without a start timezone.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Page size.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 20
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "nextCursor from the previous page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "description": "ETag of the body you already have.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Routes",
            "headers": {
              "ETag": {
                "description": "Weak tag of the data. Send it back in If-None-Match to get 304 when nothing changed.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "routes": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Route"
                      }
                    },
                    "nextCursor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "filter": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          },
          "304": {
            "$ref": "#/components/responses/NotModified"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        }
      }
    },
    "/vehicles/{vehicleId}/routes/{routeId}": {
      "get": {
        "summary": "One route, optionally with its GeoJSON line",
        "security": [
          {
            "oauth": [
              "mapit:read",
              "mapit:routes:read"
            ]
          },
          {
            "personalKey": []
          }
        ],
        "parameters": [
          {
            "name": "vehicleId",
            "in": "path",
            "required": true,
            "description": "Vehicle id from /v1/vehicles. Ids are opaque and differ per account.",
            "schema": {
              "type": "string",
              "pattern": "^veh_"
            }
          },
          {
            "name": "routeId",
            "in": "path",
            "required": true,
            "description": "Route id from the routes list.",
            "schema": {
              "type": "string",
              "pattern": "^rte_"
            }
          },
          {
            "name": "geometry",
            "in": "query",
            "required": false,
            "description": "Include GeoJSON; omitted when larger than 40 KB.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "simplify",
            "in": "query",
            "required": false,
            "description": "GeoJSON thinned to fit 40 KB; implies geometry.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "description": "ETag of the body you already have.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Route",
            "headers": {
              "ETag": {
                "description": "Weak tag of the data. Send it back in If-None-Match to get 304 when nothing changed.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "route": {
                      "$ref": "#/components/schemas/Route"
                    }
                  }
                }
              }
            }
          },
          "304": {
            "$ref": "#/components/responses/NotModified"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        }
      }
    },
    "/vehicles/{vehicleId}/stats": {
      "get": {
        "summary": "Rides, distance, riding time and speeds per local day, with the app's rules",
        "security": [
          {
            "oauth": [
              "mapit:read",
              "mapit:routes:read"
            ]
          },
          {
            "personalKey": []
          }
        ],
        "parameters": [
          {
            "name": "vehicleId",
            "in": "path",
            "required": true,
            "description": "Vehicle id from /v1/vehicles. Ids are opaque and differ per account.",
            "schema": {
              "type": "string",
              "pattern": "^veh_"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": true,
            "description": "First local day.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": true,
            "description": "Last local day, inclusive; at most 90 days.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "timezone",
            "in": "query",
            "required": false,
            "description": "IANA timezone; defaults to the account's.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "description": "ETag of the body you already have.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ride statistics",
            "headers": {
              "ETag": {
                "description": "Weak tag of the data. Send it back in If-None-Match to get 304 when nothing changed.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "304": {
            "$ref": "#/components/responses/NotModified"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "oauth": {
        "type": "oauth2",
        "description": "Send resource=<server url> on the authorization and token requests. Request offline_access for a refresh token; a connection lasts 30 days from its last refresh, and a year from sign-in at most.",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://login.mapit.me/oauth/authorize",
            "tokenUrl": "https://login.mapit.me/oauth/token",
            "refreshUrl": "https://login.mapit.me/oauth/token",
            "scopes": {
              "mapit:read": "Account, vehicles and subscription",
              "mapit:location:read": "Vehicle location and last reported device status",
              "mapit:routes:read": "Route history",
              "offline_access": "Refresh tokens"
            }
          }
        }
      },
      "personalKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "A key the customer creates at https://login.mapit.me/connections. It lasts a year and carries the permissions chosen when it was created, including Manage connections (mapit:connections), which only a personal key can have."
      }
    },
    "responses": {
      "Unauthorized": {
        "description": "Missing, expired or revoked token"
      },
      "NotModified": {
        "description": "The data has not changed since the ETag in If-None-Match. No body. It still counts towards the request limit."
      },
      "Forbidden": {
        "description": "Not allowed for this token: a personal key without Manage connections, or an OAuth app"
      },
      "NotFound": {
        "description": "Not available for this account. A foreign or unknown id answers the same."
      },
      "TooManyRequests": {
        "description": "Over 30 requests a minute for the token or key; see Retry-After"
      }
    },
    "schemas": {
      "Account": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          }
        }
      },
      "Vehicle": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "registrationNumber": {
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "km": {
            "type": "number",
            "description": "Stored mileage, not live"
          },
          "products": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "cancelled": {
            "type": "boolean"
          },
          "blockedByTransfer": {
            "type": "boolean"
          }
        }
      },
      "Subscription": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          },
          "periodEnd": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "cancelAtEnd": {
            "type": "boolean"
          }
        }
      },
      "Status": {
        "type": "object",
        "properties": {
          "vehicleId": {
            "type": "string"
          },
          "state": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "status": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "batteryPercent": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "voltage": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Vehicle supply seen by the tracker. 0 or null is normal while parked."
                  },
                  "latitude": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "longitude": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "lastCommunicationAt": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "date-time"
                  },
                  "lastLocationAt": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "date-time"
                  }
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "reason": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why there is no state: blocked_by_transfer, subscription_cancelled or no_linked_device"
          },
          "voltageNote": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "fetchedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "Connection": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^con_"
          },
          "kind": {
            "type": "string",
            "enum": [
              "app",
              "personal_key"
            ]
          },
          "name": {
            "type": "string",
            "description": "The key's name, or the name the app registered with (unverified unless builtIn)"
          },
          "builtIn": {
            "type": "boolean",
            "description": "A client built into Mapit, such as Home Assistant"
          },
          "api": {
            "type": "string",
            "enum": [
              "rest",
              "mcp"
            ]
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "description": "For apps, it moves on each token refresh"
          },
          "current": {
            "type": "boolean",
            "description": "The key making this request"
          }
        }
      },
      "Route": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "vehicleId": {
            "type": "string"
          },
          "startedAt": {
            "type": "string",
            "format": "date-time"
          },
          "endedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "distanceMeters": {
            "type": [
              "number",
              "null"
            ]
          },
          "durationSeconds": {
            "type": [
              "number",
              "null"
            ]
          },
          "avgSpeedKmh": {
            "type": [
              "number",
              "null"
            ]
          },
          "maxSpeedKmh": {
            "type": [
              "number",
              "null"
            ]
          },
          "startTimezone": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      }
    }
  }
}
