User Story: As a Dementia Patient I want to Be alerted when I get close to certain areas of my fence borders So that My carer isn't called every time I get close to a virtual fence.
Acceptance Criteria: Patient alerted before carer when leaving defined virtual fence.
Duplicate existing current location to fence check and call it proximityToBoundry
Modify the SQL query to send the alert back to the call location when the user get's within X distance of the fence boundary (this distance is supplied in the function call and can be set by the carer when defining the fence boundary)
Call this function in the client app every X interval (same setup as the carers inside/outside fence check)
If time allows figure out how to display the buffer zone graphically in the carers app and add a field to the modify fence dialogue that allows for changing the buffer distance as well.