parse hash on "commune" and "canton"