Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.
/ IRAN-locations Public archive

IRAN provinces, cities and areas

License

Notifications You must be signed in to change notification settings

ShahinSorkh/IRAN-locations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IRAN-locations

IRAN provinces, cities and areas

Usage

You shouldn't need to install this package as you can get the dataset directly form github. Though you can install as an npm package with the following:

$ npm i iran-locations

And use the dataset like:

const { provinces } = require('iran-locations')

console.log(provinces)
/*
   [
       {
            id: 'AZE',
            name: 'آذربايجان شرقي',
            cities: [
                {
                    id: '4',
                    name: 'تبریز',
                    areas: [
                        {
                            id: '1',
                            name: 'آزمايش'
                        },
                        ...
                    ]
                },
                ...
            ]
       },
       ...
   ]
 */

TODO

  • merge some cities to one city and many areas
  • add release actions
  • convert numeric ids to actual numbers

About

IRAN provinces, cities and areas

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published