Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,887
- Creating & Extending
- 25,913
- Requests & Feedback
- 9,553
- Third Party Plugins
- 9,834
- Showcase
- 3,316
- Ideas
- 1,404
- Miscellaneous
- 9,183
-
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.