# mlop-geo

> mlop-geo

Latest version **1.0.1** (published 2017-02-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install mlop-geo
pnpm add mlop-geo
yarn add mlop-geo
bun add mlop-geo
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-02-15 |
| First published | 2017-02-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 (+10 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | cloudnapps |
| Maintainers | gongxiancao |

## Links

- npm: https://www.npmjs.com/package/mlop-geo
- Repository: https://github.com/cloudnapps/mlop-geo
- Homepage: https://github.com/cloudnapps/mlop-geo#readme
- Issues: https://github.com/cloudnapps/mlop-geo/issues
- npm.io page: https://npm.io/package/mlop-geo

## Dependencies (5)

- [lodash](https://npm.io/package/lodash.md) 4.5.0
- [request](https://npm.io/package/request.md) ^2.74.0
- [bluebird](https://npm.io/package/bluebird.md) ^3.4.6
- [iconv-lite](https://npm.io/package/iconv-lite.md) ^0.4.15
- [request-promise](https://npm.io/package/request-promise.md) ^4.1.1

## Recent versions

- 1.0.1 (latest) — 2017-02-15
- 1.0.0 — 2017-02-14

## README

## Usage example

```javascript
var mlopGeocoder = require('mlop-geo');

var options = {
  provider: 'aliyun',
  httpAdapter: 'http-aliyun' // 若是阿里云地图 必须指定为 http-aliyun 对阿里云请求与结果都做了处理
};


var geocoder = mlopGeocoder(options);

// Using callback
geocoder.reverse({
  lat: 31.2303122784 ,
  lon: 121.4735623090
  }, function(err, res) {
  console.log(res);
});

//Or using Promise
geocoder.reverse(
  {
    lat: 31.2303122784 ,
    lon: 121.4735623090
  }
  )
 .then(function(res) {
    console.log(res);
  })
  .catch(function(err) {
    console.log(err);
  });

// output
[ { adcode: '310101',
    country: '中国',
    province: '上海',
    city: '上海',
    district: '黄浦区',
    provider: 'aliyun' } ]
    
```

---
_Source: https://npm.io/package/mlop-geo · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
