From c8abbfc11f848b77b9bcd96bd7cbb45cb71432a3 Mon Sep 17 00:00:00 2001 From: Sylvain Utard Date: Tue, 9 Aug 2016 23:44:26 +0200 Subject: [PATCH] docs(website): make sure we advice using aroundLatLngViaIP=false when type=city (#311) --- docs/source/documentation.html.md.erb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/source/documentation.html.md.erb b/docs/source/documentation.html.md.erb index 9eda5a334..c3099118d 100644 --- a/docs/source/documentation.html.md.erb +++ b/docs/source/documentation.html.md.erb @@ -123,6 +123,8 @@ Available types: - airport **Default**: Search in all types. + +**Note**: If you restrict the search to `city` or `airport`, you probably want to disable the `aroundLatLngViaIP` option as well. This will make sure you don't get only nearby results. @@ -301,7 +303,8 @@ var placesAutocomplete = { container: document.querySelector('#demo'), language: 'de', // Receives results in German countries: ['us', 'ru'], // Search in the United States of America and in the Russian Federation - type: 'city' // Search only for cities names + type: 'city', // Search only for cities names + aroundLatLngViaIP: false // disable the extra search/boost around the source IP }; ```