Skip to content

Create a Check My Footprints Against Confirmed Cases Feature #51

@marleymarl

Description

@marleymarl

This is related to issue #50 - within that new view, a user can toggle to / select 'Check My Footprints Against Dataset'. This would clear the map of any markers and they would have the same process as a confirmed case (i.e. they would now enter footprints on the map by clicking points and adding date and times and saving footprints to create a footprint geotimeline).

A function needs to be created for onClick of 'Check My Footprints' button that user would click after completing their timeline. It should:

a. Calculate the 'bounding box' of all of the footprints in the timeline to be checked (i.e. lat/lon of footprint that is furthest to the top-left and the one that is the furthest to the bottom right)
b. Calculate the earliestDateTime and the latestDateTime of the footprints in the timeline to be checked.
c. Pass these values to an API (URL to be provided) that will return an array of confirmed case footprints that match this geotimeline bounding box (time and space).
d. Compare the two arrays (user footprint timeline array and array of confirmed case footrpints inside bounding box) and Identify any matches in datetime proximity using same methods described in #50
e. Push any matches to a matchedArray that would be used to populate a separate match table and fire some alerts in UI

By doing the comparison on the client, the users footprint data is never even passed to the API much less saved anywhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions