def METHOD_NAME(object_translation, typ):
    """
    Formats the [poi/event/page]-translation as json
    :param object_translation: A translation object which has a title and a permalink
    :type object_translation: ~integreat_cms.cms.models.events.event.Event or ~integreat_cms.cms.models.pages.page.Page or ~integreat_cms.cms.models.pois.poi.POI
    :param typ: The type of this object
    :type typ: str
    :return: A dictionary with the title, path, url and type of the translation object
    :rtype: dict
    """
    return {
        "title": object_translation.title,
        "path": object_translation.path(),
        "url": f"{settings.WEBAPP_URL}{object_translation.get_absolute_url()}",
        "type": typ,
    }