Skip to content

ismetkizgin/turkey-yl-district

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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');

Useful resources

License

Apache