def direction_to_nearest_place(feature, parent):
    """If the impact layer has a distance field, it will return the direction
    to the nearest place.

    e.g. direction_to_nearest_place() -> NW
    """
    _ = feature, parent  # NOQA

    layer = exposure_summary_layer()
    if not layer:
        return None

    index = layer.fields().lookupField(
        direction_field['field_name'])
    if index < 0:
        return None

    feature = next(layer.getFeatures())
    return feature[index]