code: def bearing_to_nearest_place(feature, parent):
      
      _ = feature, parent  # NOQA
  
      layer = exposure_summary_layer()
      if not layer:
          return None
  
      index = layer.fields().lookupField(
          bearing_field['field_name'])
      if index < 0:
          return None
  
      feature = next(layer.getFeatures())
      return feature[index]
docs: If the impact layer has a distance field, it will return the bearing
      to the nearest place in degrees.
  
      e.g. bearing_to_nearest_place() -> 280