Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Commit

Permalink
docs(website): make sure we advice using aroundLatLngViaIP=false when…
Browse files Browse the repository at this point in the history
… type=city (#311)
  • Loading branch information
redox authored Aug 9, 2016
1 parent c2402eb commit c8abbfc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/source/documentation.html.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
</td>
</tr>
<tr>
Expand Down Expand Up @@ -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
};
```

Expand Down

0 comments on commit c8abbfc

Please sign in to comment.