Location Selection Problem For Ice Cream Company: A Case Study 1. Introduction. This research embark on an in-depth exploration of the application of the median method. The focal point is to optimize the location of a warehouse for a multinational ice cream company situated in Pakistan. The crux of this inquiry revolves around the indispensable nature of selecting the optimal facility location, as it plays a pivotal role in not only minimizing costs but also in augmenting customer service. 2. Literature. Delving into the annals of pertinent literature, this paper unfolds the connections between the p-median problem and its correlation with the Weber problem. We scrutinize the rectilinear distance metric, an elemental concept in facility location analysis. Our exploration extends to its nuanced application in the specific case of the ice cream company, providing a comprehensive backdrop for our study. 3. Methodology. The methodology section serves as the bedrock of our investigation, unveiling the intricacies of employing the rectilinear distance metric and the median method. These tools become instrumental in ascertaining the optimal location for the ice cream company's warehouse. The meticulous detailing of our data collection process, involving customer locations and distances, adds granularity to this study, with a particular emphasis on elucidating why Peshawar emerges as the optimal warehouse location. 4. Results and Discussions. The results section unfurls the tapestry of our findings, shedding light on Peshawar as the veritable optimal location. Results navigates through the implications, particularly the tangible impacts on transportation costs and the ensuing enhancements in customer service. Validation of the efficacy of the median method is paramount in this discourse. Additionally, this paper seamlessly integrates a visual representation of the median method using contour lines. This graphical elucidation accentuates the understanding of how these contours, emblematic of equal total distances, contribute significantly to the identification of the optimal facility location. This visual aid stands as a complement to the numerical findings, providing a holistic comprehension for the case of the ice cream company. 5. Conclusion. This research emphasizes the critical importance of choosing the right facility location, highlighting its role in cutting costs and improving customer service for the ice cream company. Additionally, it hints at the broader impact of our findings, suggesting their applicability to other companies and the vast field of supply chain management. In essence, our research provides valuable guidance for strategic facility location decisions, offering significant benefits for businesses overall.