gethospitalproximity

HospitalProximityTravelMetric Schema

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "durationSeconds": {
      "type": "number"
    },
    "distanceMeters": {
      "type": "number"
    },
    "durationText": {
      "type": "string"
    },
    "distanceText": {
      "type": "string"
    },
    "status": {
      "type": "string"
    }
  },
  "required": [
    "status"
  ]
}

HospitalProximityRow Schema

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "hospitalId": {
      "type": "string"
    },
    "rank": {
      "type": "number"
    },
    "straightLineDistanceMeters": {
      "type": "number"
    },
    "car": {
      "type": "object",
      "properties": {
        "durationSeconds": {
          "type": "number"
        },
        "distanceMeters": {
          "type": "number"
        },
        "durationText": {
          "type": "string"
        },
        "distanceText": {
          "type": "string"
        },
        "status": {
          "type": "string"
        }
      },
      "required": [
        "status"
      ]
    },
    "helicopter": {
      "type": "object",
      "properties": {
        "durationSeconds": {
          "type": "number"
        },
        "distanceMeters": {
          "type": "number"
        },
        "durationText": {
          "type": "string"
        },
        "distanceText": {
          "type": "string"
        },
        "status": {
          "type": "string"
        }
      },
      "required": [
        "status"
      ]
    }
  },
  "required": [
    "hospitalId",
    "rank",
    "straightLineDistanceMeters",
    "car",
    "helicopter"
  ]
}

HospitalProximityResponse Schema

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "disasterId": {
      "type": "string"
    },
    "computedAt": {
      "type": "object"
    },
    "sortMode": {
      "type": "string"
    },
    "rows": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "hospitalId": {
            "type": "string"
          },
          "rank": {
            "type": "number"
          },
          "straightLineDistanceMeters": {
            "type": "number"
          },
          "car": {
            "type": "object",
            "properties": {
              "durationSeconds": {
                "type": "number"
              },
              "distanceMeters": {
                "type": "number"
              },
              "durationText": {
                "type": "string"
              },
              "distanceText": {
                "type": "string"
              },
              "status": {
                "type": "string"
              }
            },
            "required": [
              "status"
            ]
          },
          "helicopter": {
            "type": "object",
            "properties": {
              "durationSeconds": {
                "type": "number"
              },
              "distanceMeters": {
                "type": "number"
              },
              "durationText": {
                "type": "string"
              },
              "distanceText": {
                "type": "string"
              },
              "status": {
                "type": "string"
              }
            },
            "required": [
              "status"
            ]
          }
        },
        "required": [
          "hospitalId",
          "rank",
          "straightLineDistanceMeters",
          "car",
          "helicopter"
        ]
      }
    }
  },
  "required": [
    "disasterId",
    "computedAt",
    "sortMode",
    "rows"
  ]
}