I am writing an app that will be used by a client to monitor events based upon geo-locations.
The idea is that a client would subscribe to all events that occur within a geofenced area, which will be a polygon. When a new event is added to firebase with co-ordinates that fall within the geo fenced area the event will appear in their list.
I'm not even sure it is possible, but Ideally I am looking to create some type of index that would allow a firebase query to return any event that has a coordinates that fall within the geofenced area.
Anybody got any clever ideas here? I can't think of a solution at all :(