The most comprehensive address data package for Turkey! 81 provinces, 973 districts, 870+ neighborhoods, and 245+ streets. With TypeScript support!
π¬π§ English | πΉπ· TΓΌrkΓ§e
- πΉπ· 81 Provinces - Complete Turkey
- ποΈ 973 Districts - Complete List
- π 32,000+ Neighborhoods - Complete Turkey (New!)
- π£οΈ 245+ Streets - Famous streets
- πΌοΈ 81 Province Images - Visual content
npm install turkey_province_imageconst turkeyData = require('turkey_province_image');
// Get all provinces (81)
const cities = turkeyData.getAllCities();
// Get Istanbul's districts (39)
const districts = turkeyData.getDistrictsByCity('34');
// Get neighborhoods
const neighborhoods = turkeyData.getNeighborhoodsByDistrict('0607');
// Search
const results = turkeyData.searchCities('ANKARA');import turkeyData, { City, District, Neighborhood, Street } from 'turkey_province_image';
const city: City | undefined = turkeyData.getCityByCode('34');
const districts: District[] = turkeyData.getDistrictsByCity('34');- β 81 Provinces - Complete Turkey
- β 973 Districts - Official list
- β 32,000+ Neighborhoods - Complete Turkey
- β 245+ Streets - Famous streets
- β TypeScript Support - Full type safety
- β 7 Geographic Regions - Regional filtering
- β 24 API Methods - CRUD + Search
- β Hierarchical Data - Province β District β Neighborhood β Street
Neighborhoods (32,000+):
- Complete list of neighborhoods for all 81 provinces and 973 districts.
- Updated from open data sources (2024/2025).
Streets (245+):
- Istanbul: 45 | Ankara: 35 | Izmir: 35
- Other major cities: 130+ streets
getAllCities() // Get all provinces (81)
getCityByCode(code) // Get by plate code
getCityByName(name) // Get by name
getCitiesByRegion(region) // Get by region
searchCities(query) // Search provincesgetAllDistricts() // Get all districts (973)
getDistrictsByCity(cityCode) // Get by province
getDistrictByCode(districtCode) // Get by code
searchDistricts(query) // Search districtsgetAllNeighborhoods() // All neighborhoods
getNeighborhoodsByCity(code) // By province
getNeighborhoodsByDistrict(code) // By district
searchNeighborhoods(query) // Search
getAllStreets() // All streets
getStreetsByCity(code) // By province
getStreetsByDistrict(code) // By district
searchStreets(query) // Searchconst istanbul = turkeyData.getCityByCode('34');
const districts = turkeyData.getDistrictsByCity('34');
const neighborhoods = turkeyData.getNeighborhoodsByCity('34');
console.log(`${istanbul.cityName}: ${districts.length} districts, ${neighborhoods.length} neighborhoods`);
// Output: Δ°STANBUL: 39 districts, 219 neighborhoodsconst marmaraCities = turkeyData.getCitiesByRegion('Marmara');
console.log(`Marmara Region: ${marmaraCities.length} provinces`);
// Output: Marmara Region: 11 provincesconst merkezDistricts = turkeyData.searchDistricts('MERKEZ');
console.log(`Districts named MERKEZ: ${merkezDistricts.length}`);
const ataturkStreets = turkeyData.searchStreets('ATATΓRK');
console.log(`Ataturk streets: ${ataturkStreets.length}`);- β¨ 32,000+ Neighborhoods - Complete neighborhood data for all of Turkey added!
- π Data Source Update - Switched to GitHub-based open data for easier updates.
- β¨ 245+ Streets - Complete street data
- π English README - Default language
- πΉπ· Turkish README - Available as README.tr.md
- v3.2.0: Neighborhood & street expansion
- v3.1.0: 973 districts added
- v3.0.0: TypeScript support
- v2.0.0: Geographic regions
- v1.0.0: Initial release
- Republic of Turkey Ministry of Interior
- General Directorate of Population and Citizenship Affairs
- PTT Postal Codes
- Wikipedia - Districts of Turkey
Contributions are welcome! Check CONTRIBUTING.md for guidelines.
Needed:
- Adding all neighborhoods (50,000+ total in Turkey)
- Expanding street data
- Coordinate information (lat/lng)
- Population data
Halil Ertekin
- GitHub: @halilertekin
ISC
If you like the project, don't forget to star it!
Made with β€οΈ in Turkey πΉπ·