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. |
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. |
The following shapes are associated with each hazard category:
Categories | Shapes |
EVENT | Circle |
RESPONSE | Star |
EXERCISE | Triangle |
OTHER | Hexagon |
Last updated