Address in format for the given country

时间:2016-10-19 13:39:57

标签: c# .net

is there some implementation of "Address" class which can be filled with address data and it would return it in the outline for the given country. It would implement something like this.

It would be used like:

AddressFormater af = new AddressFormater();
af.Street1 = "Street part";
af.Postal = 91000;
af.City = "London";
//other address data
af.GetAddress(new CultureInfo("en"));

Or something in this way.

1 个答案:

答案 0 :(得分:0)

您可以使用BING的API来"按地址查找位置" (http://apidock.com/rails/v2.3.8/ActiveRecord/Validations/ClassMethods/validates_uniqueness_of) 并指定一个"支持的文化代码"参数(https://msdn.microsoft.com/en-us/library/ff701714.aspx)将带回你想要的东西。