google maps api curl call
-
The curl call you have reaching out to google trying trying to pull back the lat and log doesnt return anything even though the url generated is correct. The error checking is there but the line after tries to get this $addr_search_1->results[0]->geometry->location
Two things:
1. If its empty then it kicks a PHP error because the results property doesnt exist.
2. The results object that comes back from google isn’t an array.
This causes the user’s information entered while trying to create a listing to be lost, because of the php error mentioned above the script can’t continue to the bepro_add_post function.
Version 2.0.84
I’m a geek sorry. lol
If its open on git I can push you guys a fix for it. If you want.
- The topic ‘google maps api curl call’ is closed to new replies.