npm install @nimahkh/iran_beauty
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'})
this method , export all cities with given id
this method , export all provinces
this method , export cities around of imported city
this method , export nearest province around of imported province
this method , export nearest province
With Love For Iran 💗