@nimahkh/iran_beauty
list of iran cities and provinces
Last updated a year ago by nimahkh .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @nimahkh/iran_beauty 
SYNC missed versions from official npm registry.

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:

Current Tags

  • 4.0.0                                ...           latest (a year ago)

7 Versions

  • 4.0.0                                ...           a year ago
  • 3.0.3                                ...           a year ago
  • 3.0.2                                ...           a year ago
  • 3.0.1                                ...           a year ago
  • 3.0.0                                ...           a year ago
  • 2.0.0                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 0
Last Day 0
Last Week 1
Last Month 2
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |