def _get_loc2(area_val, near_val):
    """
    Handle location string, variant 2.
    :param area_val: value of the 'area' field.
    :param near_val: value of the 'near' field.
    :return:
    """
    if area_val:
        s = " located in the %s area" % area_val
        if near_val:
            s += ", near %s." % near_val

        else:
            s += "."


    elif near_val:
        s = " located near %s." % near_val

    else:
        raise NotImplementedError()

    return s