Need help with firebase variables

This is the code i have right now but i need to compare this to the real time location, i don't know how to do it; can someone help me?; i need to get the values from the firebase when i initialize the app.
Captura de pantalla 2024-06-19 094133
I'm using an esp32 to run another code, so I'm wondering if better i use the esp to compare the variables.

Try using the get taglist method, then iterate over that list, returning each of the values for each of the tags to variables in your app.

You could be more efficient by saving the lat and lon together in one tag, either as a comma separated string, or as a list.