Requesting Hazard Categories

To request the list of hazard categories configured in the system please use the route defined here:

Get hazard categories

GET https://api.disasteraware.com/hazards/categories

Headers

Name
Type
Description

Authorization

string

Authorize to access the API.

[
    {
        "category_id": "EVENT",
        "category_name": "Event"
    },
    {
        "category_id": "EXERCISE",
        "category_name": "Exercise"
    },
    {
        "category_id": "OTHER",
        "category_name": "Other"
    },
    {
        "category_id": "RESPONSE",
        "category_name": "Response"
    }
]
circle-info

See Authorizing Requests page to get your accessToken.

This request will return an array that contains all of the hazard severities. Each element in the array will have two properties:

Properties

Definitions

category_id

This is like the primary key for the hazard category. This is the value that will be found on the hazard object.

category_name

A human readable value for the category e.g. Event.

circle-info

The following shapes are associated with each hazard category:

Categories

Shapes

EVENT

Circle

RESPONSE

Star

EXERCISE

Triangle

OTHER

Hexagon

Last updated

Was this helpful?