Change code for use centroid in buffer and routes.