我正在格式化从样本 Royal Mail PAF 导入到 Royal Mail 规范的地址。
在程序员指南中有两个具有相似字段的示例:
Table 8: Building Number in the Building Name field
Field on PAF Fictional example
Sub Building Name FLAT 1
Building Name HOLLY HOUSE
Thoroughfare OAK AVENUE
Locality BIDDENDEN
Post Town ASHFORD
Postcode TN27 8B
Table 10: Address with Sub Building Name, & using a range in Building Name field
Field on PAF Fictional example
Sub Building Name CARETAKERS FLAT
Building Name 110-114
Thoroughfare HIGH STREET WEST
Post Town BRISTOL
Postcode BS1 2AW
这些格式应如下所示:
Flat 1, Holly House
Oak Avenue
Biddenden
ASHFORD
TN27 8BT
Caretakers Flat
110-114 High Street West
BRISTOL
BS1 2AW
确定Sub Building Name
应该出现在第一行Building Name
还是Building Name
应该出现在第二行的正确逻辑是Thoroughfare
什么?
请注意,我已经测试过检查一个数字,Building Name
但它在哪里Building Name
有值10 Sellon Court
并产生了失败10 Sellon Court Western Approach