# Add markers to map based on past user inputs

**URL:** <https://community.thunkable.com/t/add-markers-to-map-based-on-past-user-inputs/1224502>\
**Category:** Questions about Thunkable X\
**Created:** [April 14, 2021, 11:26pm UTC](https://community.thunkable.com/t/add-markers-to-map-based-on-past-user-inputs/1224502 "2021-04-14T23:26:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![hanaspahia3e](https://avatars.discourse-cdn.com/v4/letter/h/7ba0ec/32.png) [@hanaspahia3e](https://community.thunkable.com/u/hanaspahia3e)\
**Post date:** [April 14, 2021, 11:26pm UTC](https://community.thunkable.com/t/add-markers-to-map-based-on-past-user-inputs/1224502/1 "2021-04-14T23:26:41Z")

</div>

I want to collect coordinates from users, store it in a cloud database of sorts and then use the coordinates to place markers in every instance of a stored coordinate. How would one go about doing this?

---

<div class="post-metadata">

**Author:** ![eko.devs.apploroceo](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eko.devs.apploroceo/32/93147_2.png) [@eko.devs.apploroceo](https://community.thunkable.com/u/eko.devs.apploroceo)\
**Post date:** [April 15, 2021, 3:43am UTC](https://community.thunkable.com/t/add-markers-to-map-based-on-past-user-inputs/1224502/2 "2021-04-15T03:43:29Z")

</div>

you can work with stored variables

---

<div class="post-metadata">

**Author:** ![hanaspahia3e](https://avatars.discourse-cdn.com/v4/letter/h/7ba0ec/32.png) [@hanaspahia3e](https://community.thunkable.com/u/hanaspahia3e)\
**Post date:** [April 15, 2021, 6:51am UTC](https://community.thunkable.com/t/add-markers-to-map-based-on-past-user-inputs/1224502/3 "2021-04-15T06:51:16Z")

</div>

it would need to save data from countless different users though from different accounts.

---

<div class="post-metadata">

**Author:** ![jane](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jane/32/27575_2.png) [@jane](https://community.thunkable.com/u/jane)\
**Post date:** [April 15, 2021, 6:56am UTC](https://community.thunkable.com/t/add-markers-to-map-based-on-past-user-inputs/1224502/4 "2021-04-15T06:56:45Z")

</div>

Hi there,

You could give each user a unique ID in your app.

Create a Firebase DB that contains a list of items, where the key of each item in the list is the user IDs and the properties of each object in the list are the latitude/longitude values.

As the user uses the app, save their current latitude/longitude to the item in your Firebase DB that has their user ID as the key.

For each item in your Firebase DB, add a marker to your map with the item’s latitude and longitude.

You can learn about adding a Firebase DB to your app here: [Variables - ✕ Docs](https://docs.thunkable.com/variables#cloud-variables)

---

<div class="post-metadata">

**Author:** ![hanaspahia3e](https://avatars.discourse-cdn.com/v4/letter/h/7ba0ec/32.png) [@hanaspahia3e](https://community.thunkable.com/u/hanaspahia3e)\
**Post date:** [April 15, 2021, 7:04am UTC](https://community.thunkable.com/t/add-markers-to-map-based-on-past-user-inputs/1224502/5 "2021-04-15T07:04:45Z")

</div>

that’s precisely what i’ve done. I have the values stored under USER ID and a time variable, but i’m having immense trouble accessing the lat, long for each instance it appears

---

<div class="post-metadata">

**Author:** ![hanaspahia3e](https://avatars.discourse-cdn.com/v4/letter/h/7ba0ec/32.png) [@hanaspahia3e](https://community.thunkable.com/u/hanaspahia3e)\
**Post date:** [April 15, 2021, 9:43pm UTC](https://community.thunkable.com/t/add-markers-to-map-based-on-past-user-inputs/1224502/6 "2021-04-15T21:43:20Z")

</div>

hey jane!

I wanted to ask how I’m supposed to go about ‘getting’ the values lat/long once they’re stored under the USER ID key?  
please help i am so desperate and confused

---

<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, 1:25pm UTC](https://community.thunkable.com/t/add-markers-to-map-based-on-past-user-inputs/1224502/7 "2024-11-08T13:25:16Z")

</div>


