Return address through geolocation

1

In the application I'm developing I would like to put a button that when pressed returns the current address where it is.

I was able to do the part of the geolocation and I get the current latitude and longitude of the device, and now what do I do? Is there any way that can return the address? Or do I have to open a maps there, search for latitude and longitude, and then return the address?

    
asked by anonymous 04.10.2017 / 20:29

2 answers

2

You need to use the > react-native-geocoder library to perform Latitude and Longitude rollback on addresses.

    
04.10.2017 / 22:45
1

From what I understand you already have the lat and long, so what you do now and the reverse geolocation, you find this in the google api documentation. Below is an example found in the same APi.

Ex: From the code. link

Documentation. link

Obs. This example is complete with the map, but in api there are some ways you can hide the map and return only the address.

    
04.10.2017 / 20:34