There are a few ways to get to Pangandaran from Jakarta.
The most popular way is to take a bus. There are a few bus companies that offer this route, including Pusaka Jaya, Sriwijaya, and Garuda. The trip usually takes around 12 hours.
Another way is to take a train. The trip usually takes around 17 hours.
The last way is to take a plane. The trip usually takes around 1 hour.