  private:
    NavigationRequest(QObject *parent);
  
    Params params;
    QString prev_response;
  };
  
  class MapSettings : public QFrame {
 
</s> remove   void locationsUpdated(const QString &response, bool success);
 </s> add   void locationsUpdated(const QJsonArray &locations); </s> remove class NavDestination;
 </s> add  </s> remove class NavDestination {
public:
  explicit NavDestination(const QJsonObject &place)
      : type_(place["save_type"].toString()), label_(place["label"].toString()),
        name_(place["place_name"].toString()), details_(place["place_details"].toString()),
        latitude_(place["latitude"].toDouble()), longitude_(place["longitude"].toDouble()) {
    // if details starts with `name, ` remove it
    if (details_.startsWith(name_ + ", ")) {
      details_ = details_.mid(name_.length() + 2);
    }
  }

  QString type() const { return type_; }
  QString label() const { return label_; }
  QString name() const { return name_; }
  QString details() const { return details_; }

  bool isFavorite() const { return type_ == NAV_TYPE_FAVORITE; }
  bool isRecent() const { return type_ == NAV_TYPE_RECENT; }

  bool operator==(const NavDestination &rhs) {
    return type_ == rhs.type_ && label_ == rhs.label_ && name_ == rhs.name_ &&
           details_ == rhs.details_ && latitude_ == rhs.latitude_ && longitude_ == rhs.longitude_;
  }

  QJsonObject toJson() const {
    QJsonObject obj;
    obj["save_type"] = type_;
    obj["label"] = label_;
    obj["place_name"] = name_;
    obj["place_details"] = details_;
    obj["latitude"] = latitude_;
    obj["longitude"] = longitude_;
    return obj;
  }

private:
  QString type_, label_, name_, details_;
  double latitude_, longitude_;
};

 </s> add  </s> remove   std::unique_ptr<NavDestination> current_destination;
 </s> add 
  void parseLocationsResponse(const QString &response, bool success);
  private:
    NavigationRequest(QObject *parent);
  void parseLocationsResponse(const QString &response, bool success);
  
    Params params;
    QString prev_response;
  };
  
  class MapSettings : public QFrame {
keep add keep keep keep keep keep keep
 ui/MapSettings: sort location JsonArray inplace (#28886) 
selfdrive/ui/qt/maps/map_settings.h