コード例 #1
0
def purify_Colombian_addresses(address_list):
    '''
    get a list of Colombian addresses and return a list of unique
    and splitted addresses extracted from input addresses 
    '''
    rechecked_addresses = [recheck_Colombian_address(add) for add in address_list]
    unique_addresses = get_unique_addresses(rechecked_addresses, to_be_deleted_from_address)

    splitted_addresses = []
    for add in unique_addresses:
        splitted_addresses.append(get_Colombian_address_parts(add))
    return splitted_addresses
コード例 #2
0
def purify_french_addresses(address_list):
    '''
    get a list of french addresses and return a list of unique
    and splitted addresses extracted from input addresses 
    '''
    unique_addresses = get_unique_addresses(address_list,
                                            to_be_deleted_from_address)

    splitted_addresses = []
    for add in unique_addresses:
        splitted_addresses.append(get_french_address_parts(add))
    return splitted_addresses
コード例 #3
0
ファイル: tools.py プロジェクト: MohsenKarimi71/temp1
def purify_german_addresses(address_list):
    '''
    get a list of german addresses and return a list of unique
    and splitted addresses extracted from input addresses 
    '''
    rechecked_addresses = []
    for add in address_list:
        rechecked_address = recheck_german_addresses(add)
        if(rechecked_address):
            rechecked_addresses.append(rechecked_address)

    unique_addresses = get_unique_addresses(rechecked_addresses, to_be_deleted_from_address)

    splitted_addresses = []
    for add in unique_addresses:
        splitted_addresses.append(get_german_address_parts(add))
    return splitted_addresses
コード例 #4
0
ファイル: tools.py プロジェクト: MohsenKarimi71/temp1
def purify_indian_addresses(address_list):
    '''
    get a list of brazilian addresses and return a list of unique
    and splitted addresses extracted from input addresses 
    '''
    rechecked_addresses = []
    for address in address_list:
        new_add = recheck_indian_address(address)
        if (new_add):
            rechecked_addresses.append(new_add)
    rechecked_addresses = list(set(rechecked_addresses))
    unique_addresses = get_unique_addresses(rechecked_addresses,
                                            to_be_deleted_from_address)

    splitted_addresses = []
    for add in unique_addresses:
        splitted_addresses.append(get_indian_address_parts(add))
    return splitted_addresses