Beispiel #1
0
def get_geocodable_address_label(house_number_getter,
                                 street_name_getter,
                                 data):
    """
    Get the address label for use with the geocoder
    using separate getters. Space join non-empty parts
    """
    value = title_case_string(
        expand_standardize_abbr(join_stripped_gotten_value(
            ' ', (house_number_getter,
                  street_name_getter), data)))
    if "'" in value:
        return value.replace("'", "")
    return value
Beispiel #2
0
def title_getter(getter, data):
    """
    Title cases the result of the getter given data.
    """
    return title_case_string(str(getter(data)))