@erannou
10 years, 5 months ago
godavid you are the savior of the day ! thank you very much for sharing your code.
It works perfectly for me, I just added something in order to be able to search a real address (with spaces between words) and not a single word:
$url = ‘http://maps.googleapis.com/maps/api/geocode/json?address=”‘.str_replace(” “,”+”, urlencode($new_station_value)).'”&sensor=false’;
Without this, google was not able to locate a location like “tokyo station” with a space.
Thx again.