Spectral shape of cosmic rays over the Galaxy