# Ayuda con la ubicacion en tiempo real

**URL:** <https://community.glideapps.com/t/ayuda-con-la-ubicacion-en-tiempo-real/62593>\
**Category:** Ask for Help\
**Created:** [June 9, 2023, 9:18am UTC](https://community.glideapps.com/t/ayuda-con-la-ubicacion-en-tiempo-real/62593 "2023-06-09T09:18:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![carlos\_yegres](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/carlos_yegres/32/51215_2.png) [@carlos\_yegres](https://community.glideapps.com/u/carlos_yegres)\
**Post date:** [June 9, 2023, 9:18am UTC](https://community.glideapps.com/t/ayuda-con-la-ubicacion-en-tiempo-real/62593/1 "2023-06-09T09:18:41Z")

</div>

Hola estoy presentando un problema que al activar mi ubicación actual se me muestra sin problema pero al ir a otra pantalla de mi aplicación y vuelvo a donde esta el botón de activación el mismo esta desactivado y necesito que la ubicación permanezca activa hasta que el usuaria decida desactivar

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [June 9, 2023, 11:49pm UTC](https://community.glideapps.com/t/ayuda-con-la-ubicacion-en-tiempo-real/62593/2 "2023-06-09T23:49:15Z")

</div>

Can you record a video of the supposed bug? Thank you.

---

<div class="post-metadata">

**Author:** ![epdarias](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/epdarias/32/45740_2.png) [@epdarias](https://community.glideapps.com/u/epdarias)\
**Post date:** [June 10, 2023, 5:50am UTC](https://community.glideapps.com/t/ayuda-con-la-ubicacion-en-tiempo-real/62593/3 "2023-06-10T05:50:37Z")

</div>

El componente LOCATION, guarda tu localización una sola vez cuando se activa. Es decir, te guarda tu latitud y longitud de ese momento. Si quieres saber cuánto se ha movido desde entonces, crea una columna tipo DISTANCE TO LOCATION.  
Adjunto de dejo los links con la ayuda.

> **[Glide • Location](https://www.glideapps.com/docs/reference/components/location)**
>
> Log the device's current location

> **[Glide • Distance to Location](https://www.glideapps.com/docs/reference/computed-columns/distance-to-location)**
>
> Calculate the distance between two locations.

Espero que te ayude! 💪🏻

---

<div class="post-metadata">

**Author:** ![carlos\_yegres](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/carlos_yegres/32/51215_2.png) [@carlos\_yegres](https://community.glideapps.com/u/carlos_yegres)\
**Post date:** [June 10, 2023, 10:09am UTC](https://community.glideapps.com/t/ayuda-con-la-ubicacion-en-tiempo-real/62593/4 "2023-06-10T10:09:25Z")

</div>

hola, gracias por ayudarme, le explico un poco lo que quiero. Mi aplicación es de servicio de entregas de comida a domicilio. Actualmente tengo 10 repartidores activos donde para iniciar sesión a sus funciones quiero que activen su ubicación en tiempo real y me lo muestre en el mapa, que todos los repartidores conectados se me muestren en el mapa, al igual que se vea su desplazamiento. Yo hice una prueba y si funciona, el problema está en que la ubicación se mantiene activa mientras que permanezcas en la pantalla donde está activada, cuando vas a otra pantalla y regresas ahí, la ubicación se desactiva. quiero que siempre esté activa y sea el repartidor que se desconecte cuando quiera.

---

<div class="post-metadata">

**Author:** ![carlos\_yegres](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/carlos_yegres/32/51215_2.png) [@carlos\_yegres](https://community.glideapps.com/u/carlos_yegres)\
**Post date:** [June 10, 2023, 10:13am UTC](https://community.glideapps.com/t/ayuda-con-la-ubicacion-en-tiempo-real/62593/5 "2023-06-10T10:13:02Z")

</div>

[![](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/b/bcec071d2daf94f074e0d45f573498975b42d6b0.png)video.zip](https://drive.google.com/file/d/1nuBSkARvkXCSCzaYQjef8rIpoGEX0Jjf/view?usp=drive_web) ![](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/0/b0abc0d7f3e270d0316b72a7b28afa781e72fd32.png)  
hola, envio un video de lo que he escrito

---

<div class="post-metadata">

**Author:** ![epdarias](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/epdarias/32/45740_2.png) [@epdarias](https://community.glideapps.com/u/epdarias)\
**Post date:** [June 12, 2023, 8:41am UTC](https://community.glideapps.com/t/ayuda-con-la-ubicacion-en-tiempo-real/62593/6 "2023-06-12T08:41:14Z")

</div>

Hola @carlos_yegres !  
No tengo permiso para descargar el vídeo… 😔

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [June 12, 2023, 11:04pm UTC](https://community.glideapps.com/t/ayuda-con-la-ubicacion-en-tiempo-real/62593/7 "2023-06-12T23:04:09Z")

</div>

> [@Location Tracking](https://community.glideapps.com/t/location-tracking/61862/3):
>
> The new location component does seem to update coordinates in real time. Any time I’ve played with it, I’ve filled user specific columns in an app where I’m not signed in…so I’m not entirely sure if it would update the back end database or what kind of hit it would have against the update quota. If it does update the back end, then it could potentially eat up your update quota very quickly. So I guess I would be cautious and try it out on a small sample app first.

I believe the new location component does update your coordinates, but it may incur updates.
