Feature Request: Include address format and related utility functions (and perhaps an API) #402
DanielSwain
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This library is outstanding. I am using it for addresses and am guessing that that is the most common use case. Here is a suggestion/feature request that I think would take this library to the next level and might even provide a way for youto monetize your efforts. First, include addressing formats for each country: https://www.grcdi.nl/gsb/world%20address%20formats.html. Then, include
CountriesAddressMixin
andCountriesAddressForm
classes to be able to store and validates addresses. Then includerender_address
(for viewing only) andrender_address_form
(for adding/editing) template tags. When entering/editing an address, an API like https://countrystatecity.in could be used by anyone to then pull in next-level information as items below country are selected when an address is being entered/edited (or you could create your own API on, for instance, RapidAPI). If you really wanted to take it to the next level, include in your library the Javascript to do this pulling of next-level information from an API such as described above. Though I realize that the above API aspires to remain free, it might not, and so you could even create your own similar API on RapidAPI and, perhaps, monetize it. Finally, while there are already address verification APIs, if you have all of the above information, then you could include international address verification in any API you might build. If your library did the above, and especially if it included the JS necessary to do the subsequent-level pulls, then I would gladly pay a reasonable fee for an API as described that included address verification. I would even be willing to pay a nominal fee for the next-level pulling of information for a production environment just because a paid service seems like it would be more stable than a free service.Beta Was this translation helpful? Give feedback.
All reactions