I usually took 'places ill tae ken' to mean places that didn't exactly make the tramps and hawkers welcome. Chambers Scottish dictionary gives 11 different definitions but they are all very similar: evil, unwholesome, harsh, severe, troublesome, unfriendly, etc.