# Get Location not working

**URL:** <https://community.thunkable.com/t/get-location-not-working/662313>\
**Category:** Questions about Thunkable X\
**Created:** [July 7, 2020, 2:04pm UTC](https://community.thunkable.com/t/get-location-not-working/662313 "2020-07-07T14:04:16Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![roumak](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/roumak/32/78203_2.png) [@roumak](https://community.thunkable.com/u/roumak)\
**Post date:** [July 7, 2020, 2:04pm UTC](https://community.thunkable.com/t/get-location-not-working/662313/1 "2020-07-07T14:04:16Z")

</div>

I am trying to save location in database using get location (The user is also allowing for location), but in firebase (after saving) it is showing as “Object object”.

Any suggestions what to do?

---

<div class="post-metadata">

**Author:** ![ryan\_hall\_apps](https://avatars.discourse-cdn.com/v4/letter/r/f6c823/32.png) [@ryan\_hall\_apps](https://community.thunkable.com/u/ryan_hall_apps)\
**Post date:** [July 7, 2020, 3:09pm UTC](https://community.thunkable.com/t/get-location-not-working/662313/2 "2020-07-07T15:09:10Z")

</div>

Can you post a screen shot of your blocks?

---

<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 7, 2020, 3:21pm UTC](https://community.thunkable.com/t/get-location-not-working/662313/3 "2020-07-07T15:21:40Z")

</div>

The “coordinates” block that you are probably telling the program to save in firebase isin fact an object, composed of other data, like latitude and longitude, so, first, use the command to show what the object is made of (I can’t recall it now), so that you will ask your program to save in firebase the information contained in it, like: “get property “longitude” of object “coordinates””, this will give you the longitude,but to be sureuse the other command that shows you the properties that compose the object in a list(viewer).

Hope I was able to let you understand

---

<div class="post-metadata">

**Author:** ![roumak](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/roumak/32/78203_2.png) [@roumak](https://community.thunkable.com/u/roumak)\
**Post date:** [July 8, 2020, 2:28am UTC](https://community.thunkable.com/t/get-location-not-working/662313/4 "2020-07-08T02:28:08Z")

</div>

So how will I save the location in firebase?? (I didn’t want to save latitudes and longitudes)

Can you please send a screenshot??

---

<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 8, 2020, 1:01pm UTC](https://community.thunkable.com/t/get-location-not-working/662313/5 "2020-07-08T13:01:56Z")

</div>

My friend; locations on a map are a point, a point on a bidimensional chart, the chart has coordinates, coordinates are longitude, and latitude.

So, if you have the longitude, and the latitude of a point, you know where it is on the map.

---

<div class="post-metadata">

**Author:** ![roumak](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/roumak/32/78203_2.png) [@roumak](https://community.thunkable.com/u/roumak)\
**Post date:** [July 8, 2020, 1:07pm UTC](https://community.thunkable.com/t/get-location-not-working/662313/6 "2020-07-08T13:07:19Z")

</div>

Thanks, for explaining it to me.  
But I am not getting what will be the code for identifying and saving the location of that city and state using those coordinates.

---

<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 8, 2020, 1:08pm UTC](https://community.thunkable.com/t/get-location-not-working/662313/7 "2020-07-08T13:08:40Z")

</div>

> [@maxb](#):
>
> The “coordinates” block that you are probably telling the program to save in firebase isin fact an object, composed of other data, like latitude and longitude, so, first, use the command to show what the object is made of (I can’t recall it now), so that you will ask your program to save in firebase the information contained in it, like: “get property “longitude” of object “coordinates””, this will give you the longitude,but to be sureuse the other command that shows you the properties that compose the object in a list(viewer).
> 
> Hope I was able to let you understand

Go in the blocks section, the _pink blocks_ are the ones you have to look at

---

<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, 11:24am UTC](https://community.thunkable.com/t/get-location-not-working/662313/8 "2024-11-08T11:24:58Z")

</div>


