turkey-yl-district

With this package you get a list of cities in Turkey. It is possible to access district and neighborhood information of these provinces.

Usage no npm install needed!

<script type="module">
  import turkeyYlDistrict from 'https://cdn.skypack.dev/turkey-yl-district';
</script>

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

Useful resources

License

Apache