LOS ANGELES (AP) — Adrian Gonzalez hit his third home run of an injury-plagued season and the Los Angeles Dodgers beat the San Diego Padres 9-2 on Tuesday night to clinch home-field advantage throughout the National League playoffs.

Yasmani Grandal and Corey Seager each had a three-run homer for the NL West champions, who improved to 101-57. The victory, coupled with Washington’s loss at Philadelphia, guaranteed the Dodgers will finish with the best record in the league.

They’ll open a best-of-five Division Series at home Oct. 6 against the winner of the NL wild-card game, hosted by Arizona. The Diamondbacks’ opponent has not been determined yet.

The Dodgers also moved closer to clinching home-field advantage if they reach the World Series for the first time since 1988. They are 2½ games ahead of Cleveland (98-59) for the top mark in the majors.

(© Copyright 2017 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)