Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ka-utils/region

Package Overview
Dependencies
Maintainers
4
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ka-utils/region

region

  • 1.1.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

region

region

使用

import {isInArea, getDistance} from "@ka-utils/region";

//判断当前是否在某个区域范围内
isInArea(latitude, longitude, areaMinLat, areaMinLong, areaMaxLat, areaMaxLong) // (当前纬度,当前经度,区域最小纬度,区域最小经度,区域最大纬度,区域最大经度)

//当前位置距离终点距离
getDistance(lat1, lng1, lat2, lng2) //(终点纬度,终点经度,当前纬度,当前经度)

开发

  1. yarn 或者 ayarn阿里内网)安装依赖
  2. 小程序 IDE 打开组件(下载地址

更多命令

  • miapp newbranch: 新建分支
  • miapp push: 提交代码
  • miapp prepub: 预发(发布 beta 版本)
  • miapp publish: 正式发布

FAQs

Package last updated on 16 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc