Geoquries with firebase and capacitor

Is there a way to fetch certain data from a databse based on location, without using geofireX? my app looks at where you are and then fetches only the data in your area, but geofire x isn’t working with the latest firebase and angular and I need to update it for other reasons