countries-states-cities-database icon indicating copy to clipboard operation
countries-states-cities-database copied to clipboard

Turkey cities are wrong or missing, can you reload?

Open neonturk opened this issue 2 years ago • 10 comments

Hello, first of all thanks to all the contributor for this beautiful project.

Turkey cities are wrong or missing, can you reload?

neonturk avatar Nov 27 '22 21:11 neonturk

@neonturk Thanks for reporting. 🎉

If you can provide me with the correct source of data for turkey, That would be great?

dr5hn avatar Nov 28 '22 07:11 dr5hn

@neonturk Dostum bende bu db ile uğraşıyorum çok mu hata var örnek hangi kısımlarda hata var?.

@dr5hn Hello, the official data source is available at the link. link: https://postakodu.ptt.gov.tr/Dosyalar/pk_list.zip

AyYildizPilot avatar Nov 28 '22 11:11 AyYildizPilot

This is the most accurate source for now. https://raw.githubusercontent.com/semihferik/il-ilce-semt-mahalle/master/Aktarilmis%20Sql%20Dosyalari/2022/2022-08-10%20Aktarilmis%20(yil-ay-gun).sql

I contacted government officials. I've officially requested an API resource. If I get a positive response from them, I will contact you again.

neonturk avatar Nov 28 '22 11:11 neonturk

@AyYildizPilot Evet dostum türkçe karakter hataları ve mükerrer kayıtlar var. Ve ilçe bölümünde il isimleride var.

@dr5hn , @AyYildizPilot 's source is correct. We'll let you know if the official API becomes available. https://postakodu.ptt.gov.tr/Dosyalar/pk_list.zip The column names in this excel are as follows;

State => il city => ilçe zipcode => PK

neonturk avatar Nov 28 '22 11:11 neonturk

@neonturk Ok thanks, i will take a look at it soon.

dr5hn avatar Dec 02 '22 07:12 dr5hn

Hi, i changed the turkish cities table mistakes.

  • Turkey's counties (cities table) has been updated.
  • Updated data source: https://postakodu.ptt.gov.tr/
  • Neighborhoods added as districts (cities table) have been deleted. (Turkey)
  • Added missing six districts (cities table) (Turkey)
  • District (cities table) records that should be 'Merkez' but added as the name of the province(city, states table) have been updated as 'Merkez'

Sql data source: https://drive.google.com/file/d/1wx-Jw-NeGUJoDX0dX2b7Te0N_VrXCa1f/view

Edit: Or you can execute the queries inside txt file and update existing data turkish-query-fixes.txt

alidagli avatar Dec 06 '22 09:12 alidagli

@alidagli Thanks for all of your efforts. I am finding it a bit hard to get spare time to focus on this. But I will try to get on it ASAP.

Thanks for your patience. Please bear with me.

dr5hn avatar Dec 08 '22 07:12 dr5hn

@alidagli Hocam veritabanın güncel hali ve ek olarak mahallelerin olduğu veritabanını sizin hazırlama imkanınız oldu mu ? Eğer siz hazırladıysanız bizimlede payalaşabilirmisiniz ? Yoksa ben sizin sunduğunuz düzeltmelere ilave olarak PTT'nin sunduğu excel ile merge edip ayrıca neighborhood tablosu oluşturacağım. Hızlı geri dönüş yaparsanız çok sevinirim. İyi çalışmalar dilerim :)

neonturk avatar Feb 14 '23 09:02 neonturk

@neonturk güncellemeyi yaptığım tarihte ptt excelinde güncel ne varsa eksiksiz hali ile database’e ekledim. Tek tek uğraştım :) hatalı olanları da değiştirdim ve düzelttim. Google drive linkinde olan sql dosyası o tarihteki ptt exceli ile il ilçe mahalle olarak birebir aynı.

alidagli avatar Feb 14 '23 10:02 alidagli

@alidagli Hocam sizin paylaştığınız dosyada Ülke (countries) İl(states) ve İlçe(cities) verileri mevcut. Mahalle(Neighborhood) verileri mevcut değil. Mahalle verilerinin de olduğu verileri paylaşmanız mümkünmüdür ?

neonturk avatar Feb 15 '23 10:02 neonturk