Restrict google map autocomplete to one country

This topic contains 4 replies, has 3 voices, and was last updated by  Stiofan O’Connor 7 years, 3 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #389729

    Walid
    Expired Member
    Post count: 16

    Hello guys,

    When a user try to add a new listing, the google autocomplete will show addresses all over the world, is there a way to restrict it to only one country ?

    For instance, if the user type the letters ‘street’ , i need he autocomplete only to show street in UK and not US.

    That would be great if you could help

    #389787

    Paolo
    Site Admin
    Post count: 31206

    Hi Walid,

    I don’t think that’s possible, but I asked to the developers to check and let us know.

    Thanks

    #389865

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Walid,

    i have set this up so it will follow the countries defined by the location manger, if its limited to the default country only then so will the autocomplete, if its limited to 5 countries or less then it will be limited to those too, but not more than 5 as this is a restriction by Google.

    Thanks,

    Stiofan

    #389925

    Walid
    Expired Member
    Post count: 16

    Hello, thank you for your reply.

    Actually, Im not sure I understand what you are saying. In fact, my location manager plugin is only set to one country ( default ), but then, when a user try to add a new listing, the autocomplete from google map will show adresses from different countries.

    Maybe I can give you my credentials so you can have a look.

    Thank you

    #389926

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Yes, this is what i mean, at the moment it does not limit it to the default country, but my change will, if you provide wp-admin details i will apply the patch to your site.

    Thanks,

    Stiofan

Viewing 5 posts - 1 through 5 (of 5 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount