calculating elevation from origin to array of destinations