You get a train or bus to the nearest stop to your friends and they come and pick you up. This is what city dwellers in countries with developed infrastructure are used to.
Alternatively, you rent a car from a car sharing service for the few times a year you want to do this.