Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] Create API call that returns max level of operatives involved #30

Open
JorgeMiguelGomes opened this issue Feb 1, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@JorgeMiguelGomes
Copy link
Contributor

Is your feature request related to a problem? Please describe.
This feature is the result of trying to create rapid answers to important questions.
How many aerial means were used in January 2020? And in 2019?

Describe the solution you'd like
An API call that returns, for the time interval and optional location filters (district,county, parish), the maximum value of man, vehicules, and aerial means involved

@JorgeMiguelGomes JorgeMiguelGomes added the enhancement New feature or request label Feb 1, 2022
@rubemlrm
Copy link
Contributor

Hi @JorgeMiguelGomes

Just a question, when you say the maximum value by type is relative to a specific incident or it's only relative to date?
For instance we have the following 3 incidents for day X on County Y and i will consider only the overall stats without getting the Incident that have the highest usage of means:

Incident Man Veh Aerial
Incident A 50 10 2
Incident B 60 14 5
Incident C 35 7 12

And the endpoint needs to return a reply like:

{
    man: 60
    veh: 14
    aerial: 12
}

@rubemlrm rubemlrm self-assigned this Dec 21, 2022
@JorgeMiguelGomes
Copy link
Contributor Author

Hi @rubemlrm, thank you for your interest in contributing to this issue.
The idea here is to get the maximum number of means involved, at any given time.

When a fire starts the means will grow, reach its peak, and then will become smaller.
What is needed is to find that peak - for each type of means - and return that.

So let's say that during the month of August the max value of aerial means was 14. The API should return that value, along with the fire information, including the hour when that happened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants