Integrating google map

Hello i have been whatching this recent tutorial from SC

after doing the very same (about min 14:30) i have to say that it works, meaning that i get coordinates from google.and they (latitude and Longitude) populate the table in my db.

But sometimes i get right coordinates and sometimes i get wrong coordinates for the zipcode i insert (italian locations). The zipcodes are all rights so i have no doubts about them, it is like google does not recognize some zipcodes or misinterpret the zipcode.

Maybe there is something that must be set at api level regarding the country?

Thanks

I solved using the name of the city, location instead of the zip code. it is not precise with the zipcode, i do not know why

Marcia mentioned in the presentation that the zipcode is quite precise in Brasil.
Unfortunately zipcodes are not as good in other countries - example is Germany. Over here the complete adress is required too.

Best

ok i might have missed that part…
anyway i almost there finishing trying to implement with SC 8.1. the map loads but i can’t see the points on the map. and yet if i echo my $result variable i see all the coordinates there ready to be plotted on the map. (about 60 records)

Is this because of SC 8.1? i Mean is this supposed to work only with SC 9?

Thanks

Even with us, there was a problem with the ZIP code.
I then used Google a little bit and changed the line as follows:

$geocode = file_get_contents(‘http://maps.google.com/maps/api/geocode/json?address=’.'postal_code=’.$Cep. ‘country=Slovenija’. ‘&sensor=false’);

Please test and report or work with you.

i manged to make it work using the location name. anyway i tried and it works your suggestion.

Thank you

best