turkey-yl-district
v1.1.0
Published
With this package you get a list of cities in Turkey. It is possible to access district and neighborhood information of these provinces.
Downloads
15
Maintainers
Readme
Turkey Province, District List
With this package you get a list of cities in Turkey. It is possible to access district and neighborhood information of these provinces.
Installation
$ npm install turkey-yl-district
Quick Start
- To attract provincial names;
const { getCityName } = require('turkey-yl-district');
const cityNames = await getCityName();
- To take the city names and license plate numbers;
const { getCityNameAndPlates } = require('turkey-yl-district');
const cityNamesAndPlates = await getCityNameAndPlates();
- To draw a county list by sending the city name or license plate number;
const { getDistrictsName } = require('turkey-yl-district');
const districtNames = await getDistrictsName('Manisa');
// or
const districtNames = await getDistrictsName('45');
- To draw the neighborhood names of the district;
const { getNeighbourhoods } = require('turkey-yl-district');
const neighborhoodNames = await getNeighbourhoods('Manisa', 'Turgutlu');