The basic importance of classifying locations within a city is to find the best suited place for an individual or an organization. It makes our work easier to find similar areas as per our requirement be it personal or professional. For the experimental setup, the author has selected the geographical location of Lucknow city and has been applied machine learning algorithm to predict the best location as per person’s need. For this experimental setup, author has applied a Python programming language. The experimental results have classified locations into different categories as per the input value of number of categories which found most satisfactory over result from the literature. The author also came to the conclusion that this model helps to analyze business purpose too.