The Heredia province is a landlocked province (it does not border the ocean) and is bordered on the east by the Limón province, on the south by the San José province, on the west by the Alajuela province and to the north by Nicaragua