@@ -41,7 +41,7 @@ @implementation RNGeocoder
41
41
return reject (@" EMPTY_RESULT" , @" Geocoder returned an empty list." , error);
42
42
}
43
43
44
- return reject (@" NATIVE_ERROR" , @" reverseGeocodeLocation failed." , error);
44
+ return reject (@" NATIVE_ERROR" , @" geocodePosition failed." , error);
45
45
}
46
46
resolve ([self placemarksToDictionary: placemarks maxResult: maxResult]);
47
47
};
@@ -74,7 +74,7 @@ @implementation RNGeocoder
74
74
if (placemarks.count == 0 ) {
75
75
return reject (@" NOT_FOUND" , @" Geocoder returned an empty list." , error);
76
76
}
77
- return reject (@" NATIVE_ERROR" , @" geocodeAddressString failed." , error);
77
+ return reject (@" NATIVE_ERROR" , @" geocodeAddress failed." , error);
78
78
}
79
79
resolve ([self placemarksToDictionary: placemarks maxResult: maxResult]);
80
80
};
@@ -111,7 +111,7 @@ @implementation RNGeocoder
111
111
if (placemarks.count == 0 ) {
112
112
return reject (@" NOT_FOUND" , @" Geocoder returned an empty list." , error);
113
113
}
114
- return reject (@" NATIVE_ERROR" , @" geocodeAddressString failed." , error);
114
+ return reject (@" NATIVE_ERROR" , @" geocodeAddressInRegion failed." , error);
115
115
}
116
116
resolve ([self placemarksToDictionary: placemarks maxResult: maxResult]);
117
117
};
0 commit comments