'google.maps.places.Autocomplete not selecting country in phone
autocomplete[name] = new google.maps.places.Autocomplete(document.getElementById(name) ,
{
types: ['geocode'] ,
componentRestrictions: {country: 'SG'}
});
This code is working in laptop, but in mobile phone, it is not using componentRestrictions to SG or Singapore only. It is showing result for whole world.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
