* https://en.wikipedia.org/wiki/List_of_Panamax_ports#Pacific_...
And from any of those it's probably not that far to any major population centre.
Compare to Switzerland, which has precisely zero ports, and so of course needs rail (and trucks) to get things delivered.