CityOfPhiladelphia / passyunk

A parser/standardizer for Philadelphia addresses
11 stars 4 forks source link

1299 2ND ST #54

Open bertday opened 7 years ago

bertday commented 7 years ago

Parsing 1299 2ND ST returns the street code for S 2ND ST:

{'components': {'address': {'addr_suffix': None,
                            'addrnum_type': 'N',
                            'fractional': None,
                            'full': '1299',
                            'high': None,
                            'high_num': None,
                            'high_num_full': None,
                            'isaddr': True,
                            'low': '1299',
                            'low_num': 1299,
                            'parity': 'O'},
                'address_unit': {'unit_num': None, 'unit_type': None},
                'base_address': '1299 2ND ST',
                'cl_addr_match': 'MULTI',
                'cl_responsibility': None,
                'cl_seg_id': None,
                'election': {'blockid': None, 'precinct': None},
                'mailing': {'bldgfirm': None,
                            'matchdesc': None,
                            'uspstype': None,
                            'zip4': None,
                            'zipcode': None},
                'output_address': '1299 2ND ST',
                'street': {'full': '2ND ST',
                           'is_centerline_match': False,
                           'name': '2ND',
                           'parse_method': '2ANS',
                           'postdir': None,
                           'predir': None,
                           'score': None,
                           'street_code': '87840',
                           'suffix': 'ST'},
                'street_2': {'full': None,
                             'is_centerline_match': False,
                             'name': None,
                             'parse_method': None,
                             'postdir': None,
                             'predir': None,
                             'score': None,
                             'street_code': None,
                             'suffix': None}},
 'input_address': '1299 2ND ST',
 'type': 'address'}