We derive an effective polaronic interaction Hamiltonian for the spinless one-dimensional Holstein model. We map it onto a next-to-nearest-neighbor interaction anisotropic Heisenberg model and study the mass gap and the power-law exponent of the spin-spin correlation function using which we analyze the Luttinger liquid to charge-density-wave transition at half-filling. We calculate the structure factor at all fillings and find that the spin-spin correlation length decreases as one deviates from half-filling. We also extend our derivation of polaronic Hamiltonian to d-dimensions.