PA-28 Cherokee/Archer/Dakota/Pillan/Warrior
Flight Crew Instrument; Flight Crew Private
Flight Crew Last 90 Days 4; Flight Crew Total 324; Flight Crew Type 71
Communication Breakdown; Situational Awareness
ATC Issue All Types; Conflict NMAC; Deviation / Discrepancy - Procedural Published Material / Policy
Flight Crew Took Evasive Action
Human Factors
Another aircraft was cleared through ZZZ airspace en route to ZZZ1 and was approved to do so via ZZZ Tower; which indicated that it did not have a visual on that aircraft. ZZZ does not have radar.I was cleared for takeoff on ZZZ Runway XX around the same time. Tower gave a frequency change to the other aircraft approximately one minute later and advised them of the aircraft taking off (me). The other aircraft responded that they were looking for traffic. Tower gave me a frequency change one to two minutes after that and advised me of the other aircraft.I was unable to spot the aircraft; but saw them on my traffic system and used the visual display and audio traffic alerts to avoid the other aircraft. I kept searching for the plane; climbing away from their flight path during this time; but even so; the traffic system indicated that we came within 100 vertical feet of each other.I believe that ZZZ Tower should have visually identified the transiting aircraft prior to clearing me for takeoff; or required me to identify the other aircraft prior to clearing me for takeoff. Both aircraft were in ZZZ airspace at the time of the event; and yet I am fairly certain that the controller did not have a visual on either of us (but certainly not on the other aircraft).If in this situation in the future; I will delay my takeoff until I have identified any aircraft that could become a hazard during my takeoff and climb-out. In addition; I will execute a turn away from the other aircraft; even when in controlled airspace.
P-28 Pilot reported an NMAC event during takeoff departure. Additionally; pilot reported concerns regarding ATC's handling of airport departure and transiting traffic.