Restrict search results by country
mainTo restrict search results to a specific country, use the components property with the format country:XX (where XX is the two-letter country code). For example, to restrict to Canada, use components="country:ca".
// Example: Restrict to Canada
const { locationResults, setTerm } = useGoogleAutocomplete(API_KEY, {
components: 'country:ca',
});