How to save multiple locations on firebase per user

I have an app that records your coordinates (lat,lon) and saves to firebase based on user ID login. If i try to save another location, it overrides the previous one. Wondering how I can go around that so for each location saved, it creates separate entries under the same logged in user account:

I also noticed that in my firebase entry, the near data starts with an open quote and ends with nothing while the spot data starts with double quote and ends with a single quote. So not sure what effect that would have in me extracting those data for use.


I would save each location under each userid with a timestamp. Then under that time stamp do the lat,lng,ect.


Did you solve?

I’m having the same issue, but I just discovered that it’s the objects creation that creates this problem

Yes I did solve it