def parameters_dict(parameters):
    """
    Returns dictionary with parameters mapped to key that contains location of parameter and it name.

    :param parameters: List of parameters.
    :type parameters: list of Object
    :return: Dictionary of parameters.
    :rtype: dict of Object
    """
    return {(parameter['in'], parameter['name']): parameter for parameter in parameters}