adr parsing tests

This page was design to test the parsing of adr and its output to the newer JSON structure of micorformats 2. These tests are part of the micorformats 2 test suite.

Theses are backwards compatibility tests for the older version 1 microformats specification. Please do not use this as a reference for authoring microformats.

Just a name (adr parsing test)

665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A.

The expected JSON output:


{
    "items": [{
        "type": ["h-adr"],
        "properties": {
            "name": ["665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A."]
        }
    }]
}

Broken into properties (h-adr parsing test)

665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A.

The expected JSON output:


{
    "items": [{
        "type": ["h-adr"],
        "properties": {
            "street-address": ["665 3rd St."], 
            "extended-address": ["Suite 207"], 
            "locality": ["San Francisco"], 
            "region": ["CA"], 
            "postal-code": ["94107"], 
            "country-name": ["U.S.A."], 
            "name": ["665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A."]
        }
    }]
}

Change log:

Contributors:

The orginal test also had contributions from: