Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: [Resolved] How to with Gabey D: Adding Location Filtering

@erannou

Participant

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.

Skip to toolbar