PA-28 Cherokee/Archer/Dakota/Pillan/Warrior
Flight Crew Private
Flight Crew Last 90 Days 22; Flight Crew Total 116; Flight Crew Type 89
Conflict NMAC
Air Traffic Control Issued Advisory / Alert; Flight Crew Returned To Clearance
Airspace Structure
I was flying VFR with one passenger from ZZZ to ZZZ1 for a touch and go and back to ZZZ. In order to avoid the Class B airspace; I planned to do the FLY VFR shoreline route below class B shelf at 2;000 ft. In my cross country flight; I always like to take flight following. I did the same this time starting from Approach followed by ZZZ3 Center. I entered the shoreline [route] after clearing the class D of ZZZ3. I informed the ZZZ3 Center that I will be staying at 2;000 ft. along the shoreline route. When crossing over the [landmark]; I was informed of traffic at my 2 o clock. I couldn't see the traffic so I reported by saying 'looking for traffic'. At the same time; I turned a little to the left knowing that the traffic is to my 2 o clock. After about 20 seconds I saw the traffic crossing to my right and felt like it was about 200 ft. in horizontal distance flying at the same altitude. I continued to my planned route to ZZZ2 ; performed the touch and go and returned back to ZZZ1 using the VFR shoreline route again at 2;000 ft.
PA28 pilot reported a NMAC with crossing traffic.