I think you can get a yabanci kimlik number without residency and KKOB is correct, the office to ask for this is in the street behind the PTT in Fethiye, GOC office. Mustafa, also known as inspector could also advise on this so worth a visit to his office.