marlove / react-native-geocoding

MIT License
208 stars 54 forks source link

Add Reverse Geocoding #1

Closed tmadison-gpsw closed 7 years ago

tmadison-gpsw commented 7 years ago
sasuke10 commented 7 years ago

@tmadison-gpsw What is the structure of latlng parameter ? I add something like this { lat: 19.4326077, lng: -99.133208 } but the server throws an invalid request error in getFromLatLng, the getFromLocation works good.

marlove commented 7 years ago

@sasuke10 today I released the version 0.2.0 and now it's possible to perform reverse geocoding.

Geocoder.getFromLatLng(19.4326077, -99.133208).then(
      json => {
        alert(JSON.stringify(json));
      },
      error => {
        alert(error);
      }
    );