I am working with ArcGIS Desktop 10.2.
I have a point shapefile, something like cities, which contain city level information, population, area, average temperature in the city etc.
Is there a way to identify for each city the total population (or any other variable of interest) in the k nearest cities?
An example would be for US, I have a shapefile containing all the big cities, I would like to know what is the total population living in 5 (this parameter can change) nearest cities around New York. I would like to do it for all the cities in the shapefile.
I am in the process of coding it by first making a function for identifying the first k neighbors and then obtaining information from these neighbors. The idea to post this question is to find out that if there is a more straight forward way to do it via arc gis.