# How to save multiple locations on firebase per user

**URL:** <https://community.thunkable.com/t/how-to-save-multiple-locations-on-firebase-per-user/133582>\
**Category:** Questions about Thunkable X\
**Created:** [July 6, 2019, 5:53am UTC](https://community.thunkable.com/t/how-to-save-multiple-locations-on-firebase-per-user/133582 "2019-07-06T05:53:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sysads](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sysads/32/44975_2.png) [@sysads](https://community.thunkable.com/u/sysads)\
**Post date:** [July 6, 2019, 5:53am UTC](https://community.thunkable.com/t/how-to-save-multiple-locations-on-firebase-per-user/133582/1 "2019-07-06T05:53:43Z")

</div>

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:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/e/ae214816665878903ff05331f96ca2ee5c08dc81.png)

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.

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/b/2b5698bf34730418a22c046c811067090e80625d.png)

---

<div class="post-metadata">

**Author:** ![samclever](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@samclever](https://community.thunkable.com/u/samclever)\
**Post date:** [July 6, 2019, 5:56am UTC](https://community.thunkable.com/t/how-to-save-multiple-locations-on-firebase-per-user/133582/2 "2019-07-06T05:56:33Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![maxb](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/maxb/32/35200_2.png) [@maxb](https://community.thunkable.com/u/maxb)\
**Post date:** [July 14, 2019, 5:46pm UTC](https://community.thunkable.com/t/how-to-save-multiple-locations-on-firebase-per-user/133582/3 "2019-07-14T17:46:46Z")

</div>

Did you solve?

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

---

<div class="post-metadata">

**Author:** ![sysads](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sysads/32/44975_2.png) [@sysads](https://community.thunkable.com/u/sysads)\
**Post date:** [July 14, 2019, 7:21pm UTC](https://community.thunkable.com/t/how-to-save-multiple-locations-on-firebase-per-user/133582/4 "2019-07-14T19:21:17Z")

</div>

Yes I did solve it

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:12pm UTC](https://community.thunkable.com/t/how-to-save-multiple-locations-on-firebase-per-user/133582/5 "2024-11-08T12:12:13Z")

</div>


