Closed fdobrovolny closed 4 years ago
No problem at all :) I was thinking and yes you are right that in most cases you would also want to be able to include businesses. On the other hand, I think that when you are entering something like home address it might not be desirable to include businesses. But I guess they should be included by default with possibility to turn them off? But maybe because it's admin panel people shouldn't add McDonald's as home address of someone.
Are there any other good patterns you've seen that make it easier to send data / options between Django and the javascript file? It would be nice to be able to have something in the settings.py file that could indicate whether you want the regular geocode only, establishments only, or both. And use regular geocode by default
closed in favor of https://github.com/madisona/django-google-maps/pull/58
I apologize for being so late in reviewing this. I'm looking at the documentation for autocomplete and wondering if it may be better to just remove the
types
argument altogether.https://developers.google.com/maps/documentation/javascript/places-autocomplete
I don't know enough to know the use cases for when you may want results without including business results. Would it not make sense to always include them all by default?