1

I'm am trying to use the i18napis.appspot.com/address address formats for a React application so that I can create localized address forms, but it's not clear to me how to use it. For example, this is the info for Germany:

{
   zipex: "26133,53225",
   key: "DE",
   zip: "\d{5}",
   fmt: "%N%n%O%n%A%n%Z %C",
   id: "data/DE",
   posturl: "http://www.postdirekt.de/plzserver/",
   require: "ACZ",
   name: "GERMANY"
}

The zip is a pretty straight forward regex, but how do I use the fmt: "%N%n%O%n%A%n%Z %C" format? What are N O A Z and C in this context?

Claire
  • 23
  • 3

1 Answers1

2

According to Google's libaddressinput documentation,

N - Name

O - Organization

A - Street Address Line(s)

Z - Zip or postal code

C - City or Locality

camiblanch
  • 3,866
  • 2
  • 19
  • 31