turkey-yl-district
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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

Package Sidebar

Install

npm i turkey-yl-district

Weekly Downloads

1

Version

1.1.0

License

Apache

Unpacked Size

3.76 MB

Total Files

29

Last publish

Collaborators

  • ismetkizgin