angular-material-extensions / google-maps-autocomplete

Autocomplete input component and directive for google-maps built with angular and material design |
https://angular-material-extensions.github.io/google-maps-autocomplete
MIT License
171 stars 61 forks source link

Origin/Location parameter for better search predictions. #280

Closed Radecom closed 7 months ago

Radecom commented 4 years ago

Bug Report or Feature Request (mark with an x)

- [ ] bug report -> please search issues before submitting
- [X ] feature request

Repro steps

Hello, first of all, congratulations on your excellent work developing this plug-in.

I am developing a multiplatform application that works with google places and addresses, first I developed the mobile application with Ionic, for the autocomplete search system there was no snippet for Ionic, so I built my own system using the back-end service of google and ionic elements ...

During my development I found that to improve search predictions, the server accepts a parameter called Origin/Location:

https://developers.google.com/maps/documentation/directions/intro#RequestParameters

https://developers.google.com/places/web-service/search#PlaceSearchRequests

This parameter greatly improves the user experience since it shows the addresses closest to the user's location ...

Desired functionality

Now, I am working with the web application, and I am getting to your plugin, I have been impressed by your work. The integration of google places was very easy.

The complication I have is that the search results are very imprecise, I have to type many more keys, and invest much more time to find the place I am looking for ...

I would like to see if there is a possibility that you will add a way for us to pass that value to searches to improve predictions...

Mention any other details that might be useful

I am willing to support your project, either by helping with development or by making a donation.

what do you think?

AnthonyNahas commented 4 years ago

I would appreciate a PR for that

thank you

Radecom commented 4 years ago

Ok, I will prepare it. Thanks!