muratgozel / turkey-neighbourhoods

Always up to date names of cities, districts and neighbourhoods of Turkey + city distances. / Her zaman güncel, Türkiye şehir, posta kodu, plaka kodu, ilçe ve mahalle listesi + şehirlerarası mesafeler.
MIT License
55 stars 9 forks source link

İlçenin mahalleleri string[] dönmüyor. #8

Closed alpzaf closed 1 year ago

alpzaf commented 1 year ago

getCityDistrictNeighbourhoods methodunun 2.ci parametresi düzgün çalışmıyor. Tüm ilçelerin mahallelerini dönüyor.

test('validate return typeof function', () => { const result = getCityDistrictNeighbourhoods('34', "Sarıyer") expect(Array.isArray(result)).toBe(true) })

böyle bir test yazıp pr açıcaktım ama pr kapalı

muratgozel commented 1 year ago

merhaba @alpzaf api metot isimleri anlamsal olarak birbirine karışıyor, bu metotların isimlerini güncelleyeceğim, lütfen bekle.

muratgozel commented 1 year ago

@alpzaf bazı metot isimlerini güncelledim (3.0.5) şu an sorun çözülmüş olmalı.

ayrıca katkıda bulunmak istersen getCityNames, getCityCodes, getCities, getPostalCodes, isPostalCode bu metotların testleri halen yok. proje pr'a açık. şuradan daha detaylı bilgi bulabilirsin: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request-from-a-fork

alpzaf commented 1 year ago

@alpzaf bazı metot isimlerini güncelledim (3.0.5) şu an sorun çözülmüş olmalı.

ayrıca katkıda bulunmak istersen getCityNames, getCityCodes, getCities, getPostalCodes, isPostalCode bu metotların testleri halen yok. proje pr'a açık. şuradan daha detaylı bilgi bulabilirsin: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request-from-a-fork

Teşekkür ederim. Pr açıldıysa tabiki katkıda bulunmak isterim.