function getUnitFeatures(bounding_box, OSM_data, unit_options) {
  let proposed_unit_features = [];

  this.streets.eachLayer(function (layer) {
    let street_feature = layer.feature,
      street_id = layer._leaflet_id,
      street_OSM_id = layer.feature.id,
      proposed_anchors = getUnitAnchors(
        street_feature,
        bounding_box,
        unit_options,
      ),
      new_proposed_unit_features = generateUnitFeatures(
        proposed_anchors,
        proposed_unit_features,
        street_id,
        street_OSM_id,
        unit_options,
      );
    proposed_unit_features.push(...new_proposed_unit_features);
  });

  unit_features = unitsOutOfStreets(proposed_unit_features, this.streets);

  return unit_features;
}
Get all appropriate units within the desired bounding box.
@private

@param {Array.<Array.<number>>} bounding_box - The map's top-left and bottom-right coordinates.
@param {Object} OSM_data - A GeoJSON Feature Collection object containing the OSM street features inside the bounding box.
@param {object} unit_options - An object containing the AgentMaps styling options for units.
@returns {Array<Feature>} - Array of features representing real estate units.