On Fri, Sep 2, 2016 at 9:56 AM, r12a <ishida@w3.org> wrote:
>
> But looking at those examples (which are of course US-centric)
Sorry about the US-centricity of these examples. This is a problem of many
APIs.
> i don't see fields for the level of detail such as `dependentLocality` or
> `careof`. I wonder how one decides what is the appropriate level of detail.
>
This is a problem that is not yet solved. The balance is determined by the
needs of your use case. If your use case is "printing a label for a
package", then freeform multiline text is OK. If you care only about
border-crossing tariffs, then you care only about the source and
destination country, placing the rest of the fields into freeform multiline
blob. In case of "dependentLocality", this is something that we have
observed being used outside of US. For example, Shanghai is such a huge
city that a street name and number is not sufficient to uniquely identify
an address. So "dependentLocality" is used here to specify a district
within Beijing.
If you are interested in talking about "careOf", can you provide your
opinion on https://github.com/w3c/browser-payment-api/issues/244 ?
> Do zip codes in the US not identify the location better than city names?
In general, zip codes in US are more granular than cities.