Hi nauna,
Check with the below code.
HTML
<asp:TextBox ID="txtLocation" runat="server" Width="200px" />
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?libraries=places&key=API_Key"></script>
<script type="text/javascript">
window.onload = function() {
var options = { types: ['(regions)'], componentRestrictions: { country: ["us", "ca"]} };
var places = new google.maps.places.Autocomplete(document.getElementById('<%=txtLocation.ClientID%>'), options);
google.maps.event.addListener(places, 'place_changed', function () {
var place = places.getPlace();
var address = place.formatted_address;
var latitude = place.geometry.location.lat();
var longitude = place.geometry.location.lng();
var mesg = "Address: " + address;
mesg += "\nLatitude: " + latitude;
mesg += "\nLongitude: " + longitude;
});
}
</script>
Refer below link for passing multiple countries.
https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-multiple-countries