Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Releases: devfd/react-native-geocoder

v0.4.3

15 Jul 04:58
Compare
Choose a tag to compare

iOS

  • fix target deployment to 7.0
  • support parallel requests (thanks @mikelambert )

v0.4.2

20 May 18:57
Compare
Choose a tag to compare

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

19 May 05:53
Compare
Choose a tag to compare

Better results

  • formattedAddress is now included
  • feature is now also returned on Android
  • subThoroughfare is now streetNumber
  • thoroughfare is now streetName

Breaking changes:

  • Geocoder.reverseGeocodeLocation is now Geocoder.geocodePosition
  • Geocoder.geocodePosition only accepts object with {lat, lng}, not {latitude, longitude}
  • no more thoroughfare and subThoroughfare in geocoding object