Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

提供全球的国家、省/直辖市/州、市、县信息。

License

Notifications You must be signed in to change notification settings

booxood/node-location

Repository files navigation

node-location

Build Status Coverage Status

提供全球的国家、省/直辖市/州、市、县信息。

数据来自 QQ 的安装包

安装

npm install node-location

使用

const location = require('node-location').location
const country = require('node-location').country
const state = require('node-location').state
const city = require('node-location').city
const region = require('node-location').region

说明

每一个地址信息的包含字段:

  • name

    地址名字

  • code

    地址代码

  • level

    层级

    • 1:国家
    • 2:省/直辖市/州
    • 3:市
    • 4:县
  • country

    国家名字

  • state (可选)

    省/直辖市/州名字

  • city (可选)

    市名字

  • region (可选)

    县名字

License

MIT

About

提供全球的国家、省/直辖市/州、市、县信息。

Resources

License

Stars

Watchers

Forks

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /