def lat_lng_error_message(value: str, param: str) -> str:
    """
    Defines an error message when lat or long are not in good format
        - value: str. Latitude or longitude value as a string
        - param: str. Name of the param (either latitude or longitude)
    """    
    error_msg = "Incorrect " + param + " parameter: " + value + ". Latitudes should be floats"
    error_msg += " in the range (-90, 90) and longitudes should be floats in the range (-180, 180)"
    return error_msg