@@ -124,7 +124,7 @@ public function geocode($values)
124124 }
125125 } catch (\Exception $ e ) {
126126 $ batchGeocoded = new BatchResult ($ provider ->getName (), $ value , $ e ->getMessage ());
127- $ deferred ->reject ($ batchGeocoded ->newInstance ());
127+ $ deferred ->resolve ($ batchGeocoded ->newInstance ());
128128 }
129129
130130 return $ deferred ->promise ();
@@ -144,7 +144,7 @@ public function geocode($values)
144144 }
145145 } catch (\Exception $ e ) {
146146 $ batchGeocoded = new BatchResult ($ provider ->getName (), $ values , $ e ->getMessage ());
147- $ deferred ->reject ($ batchGeocoded ->newInstance ());
147+ $ deferred ->resolve ($ batchGeocoded ->newInstance ());
148148 }
149149
150150 return $ deferred ->promise ();
@@ -188,7 +188,7 @@ public function reverse($coordinates)
188188 }
189189 } catch (\Exception $ e ) {
190190 $ batchGeocoded = new BatchResult ($ provider ->getName (), $ valueCoordinates , $ e ->getMessage ());
191- $ deferred ->reject ($ batchGeocoded ->newInstance ());
191+ $ deferred ->resolve ($ batchGeocoded ->newInstance ());
192192 }
193193
194194 return $ deferred ->promise ();
@@ -212,7 +212,7 @@ public function reverse($coordinates)
212212 }
213213 } catch (\Exception $ e ) {
214214 $ batchGeocoded = new BatchResult ($ provider ->getName (), $ valueCoordinates , $ e ->getMessage ());
215- $ deferred ->reject ($ batchGeocoded ->newInstance ());
215+ $ deferred ->resolve ($ batchGeocoded ->newInstance ());
216216 }
217217
218218 return $ deferred ->promise ();
0 commit comments