@nimahkh/iran_beauty

4.0.0 • Public • Published

IRAN Beauty

a nodejs package to list Iran cities
Installation
npm install @nimahkh/iran_beauty
Run in Codes
const geoData=require('./lib/geo-data');
const tehran = Object.freeze({
  latitude: 35.715298,
  longitude: 51.404343
});

const find=geoData.findProvincesAround(tehran, {
  radius: 1000,
  unit: 'km'
});


const provinces=geoData.getProvinces();
const cities=geoData.getCities(1);
const citiesAround=geoData.findCitiesAround(tehran)
const nearestProvince=geoData.findNearestProvince(tehran,{radius:1000,unit:'km'})

Methods

getCities

this method , export all cities with given id

getProvince

this method , export all provinces

findCitiesAround

this method , export cities around of imported city

findProvincesAround

this method , export nearest province around of imported province

findNearestProvince

this method , export nearest province

With Love For Iran 💗

Package Sidebar

Install

npm i @nimahkh/iran_beauty

Weekly Downloads

9

Version

4.0.0

License

MIT

Unpacked Size

75.6 kB

Total Files

10

Last publish

Collaborators

  • nimahkh