npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

global-search-latitude

v1.0.14

Published

## 需求

Downloads

8

Readme

global-search-lantitude

需求

http://ztpm.goldwind.com.cn:9898/pro/task-view-6464.html

任务描述

1.确定风场经纬度信息是否可用 2.通过经纬度计算距离 3.先用列表的形式实现

1、业务场景: 查询一个风电场,需要知道这个风电场附近有哪些电场,出差或者商务活动时候可以统一规划。 南方台风过境,需要查询台风当前位置周围有哪些电场,可以提前通知预警。

2、需求内容: 可以参考百度地图 第一种查询-- 步骤1:输入风电场名称(模糊查询) 步骤2:选择要查询的风电场,输入距离,比如100公里 ​ 通过一个列表显示出方圆100公里内所有的风电场 第二种查询-- 步骤1:提供输入框,用户可以填入经纬度 步骤2:输入距离,比如100公里 步骤3:列表显示所选经纬度点周围100公里内的风电场信息

3、 目前所有风场的经纬度数据都有,根据经纬度和距离来设计算法查询(算法后期需要提供给监控部,他们借鉴用来做相关的数据分析) 这个页面可以只做成简单的查询页面,列表显示查询出来的风电场信息即可 也可以想办法附加上地图做出好的动态展示效果,可以评估一下 列表显示的内容暂定为:风场名称、机组数量、容量、质保状态、直线距离

路由列表

地图搜索: /search/latitude

运行与发布

运行

npm install
npm run serve

如使用mock数据请修改相关绑定

发布

1 npm version patch(minor/major) 2 检查npm registry npm set registry http://10.12.7.208:4873 后 npm publish 3 svn commit

更新历史

1.0.13 增加英文国际化处理