• Hello,
    I want to restrict search to one country with autocomplete search geocode, for that I edit geo.js into template/search/ folder and replace line 49 :
    autocompleteService.getPlacePredictions( {'input': input.val(), 'offset': input.val().length}, function listentoresult(list, status) {

    by

    autocompleteService.getPlacePredictions( {'input': input.val(), 'offset': input.val().length, 'componentRestrictions': {country: 'fr'} }, function listentoresult(list, status) {

    But it doesn’t work…

    Do you have idea ?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘restrict search autocomplete geocode to one country’ is closed to new replies.