added location to better format in the future
Changed location_order to a variable in the nearest_neighbor model