-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to format company address containing person name? #34
Comments
I think this is a missing feature. I've partially reviewed http://www.columbia.edu/~fdc/postal/ and discovered the preferred order is different in the Netherlands:
Also maybe France? One way to solve this would be with a new Seems like the ideal solution depends somewhat on the use case. What's your perspective? |
Thanks. I am sure this feature would be much appreciated. I'd love to help you guys out on this one but I'm afraid my Rails skills are too basic. Right now what I do is this:
(Note the new line character between person and company name.) You could argue that this solution is fine because technically both lines contain some sort of name. Also, it will probably work in most countries but I am not entirely sure of that. However, in the long run it would of course be more elegant to have an extra field (I personally would prefer |
Good feedback on the naming. I'm 👍 on I can handle the code side here if anyone is willing to finish going through http://www.columbia.edu/~fdc/postal/ for variations. |
@timokleemann I'm happy to release this with the incomplete list of variations (just Netherlands) or wait for more details. Let me know. |
Sounds great! I just wish I could provide an example for each country. Even Frank doesn't seem to know that for sure. For some countries he includes company / organization / department names in his example addresses, for others he doesn't. According to his research, most countries seem to follow the minor-to-major pattern:
He gives two examples of countries who don't: Russia and Iran. I don't know if there are more. |
I think Snail is a best-effort library. It attempts to improve deliverability, but post offices around the world have to remain flexible. Consider this bit on Japan:
|
Thanks for this gem!
I'm just wondering how to format addresses containing a company name and a person name.
In Germany, we'd typically put the company name on the first line, followed by the person's name on the next line.
What's the international way of dealing with this? Can Snail handle it in any way?
This does work...
...but isn't there a better way?
The text was updated successfully, but these errors were encountered: