-
Notifications
You must be signed in to change notification settings - Fork 20
[Feature Request] Structured physical address field #189
Comments
Hi! This one is little bit complex, due to the related VCard RFC for addresses. It describes the address field as a complex array of address parts. But I remains difficult to implement properly because worldwide addresses are too differents across all countries. That's why Google stores the address in a single string, and uses its gmap powered engine to parse and interact with the field. Currently, we have, IMO, 3 options:
So, we only have the 2nd alternative at this time, but I haven't find a good libary to do this (maybe using osm related project?). If someone knows a good one, or imagine a better solution, I'll be happy to discuss about it 😄! Thanks again @ArchangeGabriel for your suggestion. It's definitely something we must handle in the app, when we can find a good way to do it. |
You’ve probably found those things already, but just in case there are some discussions here: Also a bit here (not linked from the former): |
And the most relevant part I think:
|
Thanks @ArchangeGabriel, we'll have a look at your links when we'll work on the feature. |
IMHO, having a multi field UI is not so bad. 2 or 3 address fields + city + zip + state/prov + country do the trick for the vast majority of places worldwide. It works this way for my address book on Android and Thunderbird, and so many e-commerce websites. Having an automatic parser is probably sexier, but in the meantime, please consider the above solution. |
A possible implementation for address formating: https://github.com/OpenCageData/address-formatting |
Hi,
One thing that could be useful is structured physical address field, I mean that for storing and edition, an address could be split this way:
Street:
PB:
City:
State:
ZIP code:
Country:
This would help importing contact from Google (see cozy-labs/import-from-google#40) and probably also future features I have in mind, like sorting or searching using those fields (for instance, to answer things like “Who among my contacts leave in Paris?”).
You might also want to implement what Google do, i.e. parsing when someone enters an address using the unique field instead of this detailed ones in order to fill those ones.
Thanks for considering this.
The text was updated successfully, but these errors were encountered: