Scattering of electrons in edge states of a magnetically quantized two-dimensional electron gas (2DEG) by nonequilibrium acoustic phonons has been studied both experimentally and theoretically. A phonoconductance imaging technique was used to probe the spatial and magnetic-field (B) dependence of the acoustic-phonon scattering of electrons in a GaAs device. It was discovered that a response was observed only when phonons were incident at the edge of the 2DEG. Giant oscillations in the phonoconductance with magnetic field were observed, these were periodic in 1/B and changed sign when the field was increased beyond 1.3 T. At low field the oscillations were negative, i.e., phonon scattering causes a decrease in conductance, whereas at high field the oscillations become positive. These results are described theoretically by considering the change in group velocity of the edge electrons upon absorption of a phonon which changes their energy and wave vector. Assuming a sharp edge potential, an important parameter in the theory turns out to be the product of the phonon momentum component parallel to the edge and the magnetic length. If this parameter is greater than unity, then interedge state transitions leading to a decrease in electron group velocity produce the dominant effect, a decrease in conductance. However, if it is less than unity, only intraedge state transitions can take place giving rise to an increase in group velocity and hence an increase in conductance. If the potential at the sample edge is considered to be smooth, which is a more realistic assumption, then the theoretical results remain qualitatively the same, except that the field at which interedge state transitions are no longer possible is reduced in line with the greater separation of the edge channels. This makes it possible to use our results to estimate both the potential gradient at the edge of the sample and the spatial separation of the edge channels. It is also demonstrated that the spatially resolved phonoconductance measurements as a function of magnetic-field strength can be used to probe the local electron concentration and the charge separation connected with the Hall voltage is determined for our sample.