This repository has been archived by the owner on Sep 4, 2021. It is now read-only.
Releases: devfd/react-native-geocoder
Releases · devfd/react-native-geocoder
v0.4.3
v0.4.2
Add auto fallback to Google Maps for android devices
Geocoding services might not be included in some Android devices (Kindle, some 4.1 - 4.3 devices, non-google devices). For those special cases the lib can fallback to the online google maps geocoding service
import Geocoder from 'react-native-geocoder';
// simply add your google key
Geocoder.fallbackToGoogle(MY_KEY);
// use the lib as usual
let ret = await Geocoder.geocodePosition({lat, lng})
// you get the same results
v0.4.1
Better results
formattedAddress
is now includedfeature
is now also returned on AndroidsubThoroughfare
is nowstreetNumber
thoroughfare
is nowstreetName
Breaking changes:
Geocoder.reverseGeocodeLocation
is nowGeocoder.geocodePosition
Geocoder.geocodePosition
only accepts object with{lat, lng}
, not{latitude, longitude}
- no more
thoroughfare
andsubThoroughfare
in geocoding object