def longest_loc_length(book):
    """
        Return the length of the longest location key string.
    """
    
    loc_length = 0
    for loc_string in book.keys():
        if len(loc_string) > loc_length: loc_length = len(loc_string)
    
    return loc_length