Skip to content
This repository has been archived by the owner on Nov 8, 2017. It is now read-only.

Country Restriction #331

Closed
nduijvelshoff opened this issue Jun 8, 2017 · 1 comment
Closed

Country Restriction #331

nduijvelshoff opened this issue Jun 8, 2017 · 1 comment

Comments

@nduijvelshoff
Copy link

Hi,

I would like to use "components=country:nl" as a restriction. When I place it in the code like this:

<script src="https://maps.googleapis.com/maps/api/js?libraries=places&components=country:nl&language=nl&key=API_KEY"></script>

It doesn't work, what am I doing wrong or is it not possible yet?

BR,

Nick

@nduijvelshoff
Copy link
Author

Solved:

$("#addr").geocomplete({ details: "form", detailsAttribute: "from", country: ["nl"], types: ["geocode", "establishment"], });

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant