Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add location biaising #9

Open
psykolm22 opened this issue Dec 31, 2017 · 1 comment
Open

Add location biaising #9

psykolm22 opened this issue Dec 31, 2017 · 1 comment
Assignees
Milestone

Comments

@psykolm22
Copy link
Owner

From @danyyacoub on April 28, 2017 8:3

Hi, is there a way to add location biasing in this plugin ?
The idea is to add to options the bounds objects that contain south west coordinates and north east coordinates, it already exists in google maps api.

https://developers.google.com/maps/documentation/javascript/reference#AutocompleteService

Thanks,

Copied from original issue: psykolm22/ng2-google-place-autocomplete#17

@psykolm22
Copy link
Owner Author

From @dionsteel on August 23, 2017 1:24

this might have already been taken care of, but it seems like you could put this in the options object same as you would for types, etc like

{
    "types": [ "(regions)" ],
    "componentRestrictions": { "country": "au" },
    "bounds": { 
        "east": east longitude,
        "north": north latitude,
        "south": south latitude,
        "west": west latitude
    }
}

could be wrong, haven't tested it, but pretty sure.

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

No branches or pull requests

1 participant