---
# System prepended metadata

title: Geolalizacion

---

# Geolalizacion

Esta es la doc oficial para web, pero en las otras dice que se basan en esta API de google
https://developers.google.com/maps/documentation/geolocation/overview

Esta es la de pago
https://www.transistorsoft.com/shop/products/react-native-background-geolocation
tiene uno que dice free version, pero te manda al repositorio donde dice que te pedira tu numero de licencia, entonces un poco raro...
https://github.com/transistorsoft/react-native-background-geolocation (este es el link del freeversion)

Esta es la segunda opcion que es gratis, pero no entendi como implementarla ni hay imagenes para basarse en como funciona 
https://github.com/Rapsssito/react-native-background-actions

Y la tercera opcion que es gratis es primero con el fetch: 
https://github.com/transistorsoft/react-native-background-fetch
y despues utilizar la info del fetch en la accion 
https://github.com/Agontuk/react-native-geolocation-service


Esta opcion creo solo es para geolocalizacion pero no se actualiza constantemente
https://github.com/michalchudziak/react-native-geolocation

Este es el thread que encontre donde salieron estas referencias
https://stackoverflow.com/questions/71625768/location-tracking-in-react-native-even-if-app-is-closed
y este es de android de como acceder a la localizacion en segundo plano
https://developer.android.com/training/location/background



### Datos tecnicos para Usama
tratar de hacerlo con estas dos https://github.com/mauron85/react-native-background-geolocation 
https://github.com/darron1217/react-native-background-geolocation y si no es posible por que ya esta abandonado usar la opcion de pago https://github.com/transistorsoft/react-native-background-geolocation

si tampoco es posible, hacer a mano usando el plugin de maps para unir los puntos,  firebase para guardar las geolocalizaciones y acciones background con fetch
react native firebase para actualizar
https://github.com/bramus/react-native-maps-directions
https://github.com/michalchudziak/react-native-geolocation
https://github.com/transistorsoft/react-native-background-fetch

En todas estas opciones hacerlo siguiendo los patrones de estrutura del proyecto de redux, redux-saga y services donde se guardan las llamadas a firebase. Y seguir los demas patrones que se puedan ver, viendo la estructura del proyecto

### traducido a ingles
Map functionalities. 

Location of the user should show as a dot with the color of your user level. (like in the figma)

We intend to show and update the geolocation of the users for probably 15-20 minutes on the map, even if they don’t have the app open (background geolocation) 

Once your request for a session is accepted a color line tracking  between the two users should appear, so they can get to each other, like uber works :) 

This is the official for web, but the others says they're based on this API from google.
https://developers.google.com/maps/documentation/geolocation/overview


This one requires payment
https://www.transistorsoft.com/shop/products/react-native-background-geolocation
It has a free version, but it links to the repository where it ask for a license, so i dont know to be honest, you can try.

https://github.com/transistorsoft/react-native-background-geolocation (this is the link of the "free" version)

This is the second option which says is free but i didn't understand how to implement it and it doesn't have images to see how it works, sadly.
https://github.com/Rapsssito/react-native-background-actions

And this is the third option which is free too, first you need to fetch it with this one:
https://github.com/transistorsoft/react-native-background-fetch
and then you use the fetch info to do the trick
https://github.com/Agontuk/react-native-geolocation-service

This option is just for geolocation but it doesn't updates constantly
https://github.com/michalchudziak/react-native-geolocation

This is the thread i found where i followed the references
https://stackoverflow.com/questions/71625768/location-tracking-in-react-native-even-if-app-is-closed
and this is from android on how to access the background location 
https://developer.android.com/training/location/background
--------ends alan investigation--------

--------start ruben instructions--------
try to do it with these two free libraries,
https://github.com/darron1217/react-native-background-geolocation
https://github.com/mauron85/react-native-background-geolocation
one is more updated than the other, if it is not possible to use the payment option
https://github.com/transistorsoft/react-native-background-geolocation

if it is not possible either, do it by hand using the maps plugin to join the points, firebase to save the geolocations and background actions with fetch
 react native firebase to update
 https://github.com/bramus/react-native-maps-directions
https://github.com/michalchudziak/react-native-geolocation
https://github.com/transistorsoft/react-native-background-fetch

In all these options do it following the structure patterns of project the redux, redux-saga and services where calls to firebase are saved.  And follow the other patterns that can be seen, seeing the structure of the project