limit response on preCheck
This commit is contained in:
parent
61480f2193
commit
d62bec9fb2
1 changed files with 2 additions and 2 deletions
|
|
@ -218,7 +218,7 @@ export default {
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
const checkService = new window.google.maps.places.PlacesService(document.createElement('div'));
|
const checkService = new window.google.maps.places.PlacesService(document.createElement('div'));
|
||||||
checkService.getDetails({ placeId: 'ChIJN1t_tDeuEmsRUsoyG83frY4' }, (place, status) => {
|
checkService.getDetails({ placeId: 'ChIJN1t_tDeuEmsRUsoyG83frY4', fields: ['name'] }, (place, status) => {
|
||||||
if (status === window.google.maps.places.PlacesServiceStatus.OK) {
|
if (status === window.google.maps.places.PlacesServiceStatus.OK) {
|
||||||
this.autocomplete = new window.google.maps.places.Autocomplete(document.getElementById('autocomplete'), {
|
this.autocomplete = new window.google.maps.places.Autocomplete(document.getElementById('autocomplete'), {
|
||||||
componentRestrictions: { country: ['us'] },
|
componentRestrictions: { country: ['us'] },
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue