4.0.0 • Published 5 years ago

@nimahkh/iran_beauty v4.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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 :heartpulse:

4.0.0

5 years ago

3.0.3

5 years ago

3.0.2

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.0.0

5 years ago

1.0.0

5 years ago