Search code examples
reactjsreact-nativegeolocationnavigatorreact-native-maps

Get location name from the latitude and longitude in react-native


At present i'm getting latitude and longitude form navigator.geolocation.watchPosition(success,error,{}) in react-native. But I want to display users location. How can i do that without using google Geocoding API?


Solution

  • What you're looking for is probably a reverse geocoding service (i.e. convert lonlat to street address). If so, you can make use of Google Maps Reverse Geocoding

    Possible duplicate of Use Geocoder to return the device address