django-address icon indicating copy to clipboard operation
django-address copied to clipboard

Customize options to geocomplete (like `type`)

Open jplehmann opened this issue 9 years ago • 2 comments

Sometimes you don't want to allow a user to choose from any kind of location, but you want to scope it to a certain type (e.g., cities only). The JQuery Geocomplete API accepts a [type parameter](https://developers.google.com/maps/documentation/javascript/places?csw=1#place_search_requests) which gets passed though. It can be set to one of these [types](Places for autocomplete requests: https://developers.google.com/places/supported_types#table3).

This is very simple to implement and just requires an additional option to geocomplete.

Currently I have copied addresses.js into my code and customized it, but this issue is to generalize support for this option or maybe any option to avoid such hacking.

jplehmann avatar Feb 19 '17 16:02 jplehmann

+1 It would also be extremely beneficial if the model included a 'Name' field for the business name when returning an 'establishment'.

brianabrams avatar Oct 08 '18 19:10 brianabrams

Assigning this to 0.3.0 since it would require model architecture currently missing from master.

banagale avatar Apr 20 '20 03:04 banagale