Why I am getting prediction score 1 i.e. 100%
You are using your target variable location_id as a feature. You need to remove it from data/train1/ X variables.

In other words, you are trying to predict location_id by location_id.

If you use reg.feature_importances_ you will see, that location_id affects your prediction 100% and others have no effect on prediction result.