The polarity distribution of GaN based lateral polarity heterostructures is investigated by piezoresponse force microscopy (PFM). Simultaneous imaging of surface morphology, as well as the phase and magnitude of the piezoelectric response, is performed by PFM on a GaN film with patterned polarities on a c-Al2O3 substrate. We demonstrate that the polarity distribution of GaN based lateral polarity heterostructures can be deduced from the phase image of the piezoresponse with nanometer scale spatial resolution.