I have a dataset which contains information about houses worldwide with the following features: house size, number of bedrooms, city name, country name, garden or not, ... (and many other typical house information). And the target variable is the price of the house.
I know that strings are not acceptable as input in a Machine Learning or Neural Network model so instead of doing one hot encoding for the city name and the country name (because I would end up with a few hundred columns) I decided to replace the city name with its geographical coordinates (one column with longitude and one column with latitude). The city where a house is located will obviously help determine the price of the house.
So does changing the city name with its longitude and latitude preserve this important information? Is it alright to change the city name with its longitude and latitude ?