You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the $results array is <= 10, it works fine but when $results is > 10, the I get a server timeout. Is there a way on how I can get multiple geocodes with one function call?
Please help. Tried searching the issues but there seems to be no issues related to this. Thanks in advance!
~May
The text was updated successfully, but these errors were encountered:
I have found that adding a wait time of 250ms between each request for GoogleMaps aleviates this (they rate-limit their APIs) -- other providers may do that as well.
Hi I have this code:
foreach ($results as $result) {
$barangay = DB::table('rbrgy')->where('bgycode', $result->barangay)->first();
$loc = getBrgyName($barangay->bgycode) . ', '
. getCityName($barangay->citycode) . ', '
. getProvName($barangay->provcode) . ', '
. getRegion($barangay->regcode) . ', '
. 'Philippines';
$geocode = Geocoder::geocode($loc);
}
When the $results array is <= 10, it works fine but when $results is > 10, the I get a server timeout. Is there a way on how I can get multiple geocodes with one function call?
Please help. Tried searching the issues but there seems to be no issues related to this. Thanks in advance!
~May
The text was updated successfully, but these errors were encountered: