Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ferdiozer/turkey-city-regions
Current data of provinces, districts, districts and neighborhoods in Turkey
https://github.com/ferdiozer/turkey-city-regions
nodejs turkey-cities turkey-districts turkey-neighbourhoods turkey-post-codes
Last synced: about 5 hours ago
JSON representation
Current data of provinces, districts, districts and neighborhoods in Turkey
- Host: GitHub
- URL: https://github.com/ferdiozer/turkey-city-regions
- Owner: ferdiozer
- Created: 2021-05-25T08:43:28.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-04T20:34:43.000Z (almost 3 years ago)
- Last Synced: 2024-04-26T09:20:57.077Z (7 months ago)
- Topics: nodejs, turkey-cities, turkey-districts, turkey-neighbourhoods, turkey-post-codes
- Language: JavaScript
- Homepage:
- Size: 2.32 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![NPM](https://nodei.co/npm/turkey-city-regions.png)](https://npmjs.org/package/turkey-city-regions)
# turkey-city-regions
If you want the list of Turkey regions, you can easily include it in your project and use it.
## Source data url
[https://postakodu.ptt.gov.tr](https://postakodu.ptt.gov.tr/Dosyalar/pk_list.zip)How to use?: example
```
npm install turkey-city-regions
``````
import TurkeyRegions turkey-city-regionsvar allAreas = TurkeyRegions.getAllData // all data list
//Example
[ { il: 'ADANA',
ilce: 'ALADAĞ',
semt: 'ALADAĞ',
mahalle: 'AKPINAR MAH',
posta_kodu: '01720' }
....
]```