This repository was 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 resultsv0.4.1
Better results
formattedAddressis now includedfeatureis now also returned on AndroidsubThoroughfareis nowstreetNumberthoroughfareis nowstreetName
Breaking changes:
Geocoder.reverseGeocodeLocationis nowGeocoder.geocodePositionGeocoder.geocodePositiononly accepts object with{lat, lng}, not{latitude, longitude}- no more
thoroughfareandsubThoroughfarein geocoding object