惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Help Net Security
Help Net Security
G
Google Developers Blog
雷峰网
雷峰网
WordPress大学
WordPress大学
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Engineering at Meta
Engineering at Meta
Security Latest
Security Latest
T
Threat Research - Cisco Blogs
AWS News Blog
AWS News Blog
F
Full Disclosure
C
Cybersecurity and Infrastructure Security Agency CISA
T
The Exploit Database - CXSecurity.com
J
Java Code Geeks
U
Unit 42
C
Cyber Attacks, Cyber Crime and Cyber Security
V
V2EX
C
Cisco Blogs
博客园 - 司徒正美
Project Zero
Project Zero
L
LINUX DO - 热门话题
阮一峰的网络日志
阮一峰的网络日志
Blog — PlanetScale
Blog — PlanetScale
Scott Helme
Scott Helme
A
About on SuperTechFans
Hugging Face - Blog
Hugging Face - Blog
S
Securelist
小众软件
小众软件
aimingoo的专栏
aimingoo的专栏
S
Schneier on Security
G
GRAHAM CLULEY
酷 壳 – CoolShell
酷 壳 – CoolShell
Cyberwarzone
Cyberwarzone
MongoDB | Blog
MongoDB | Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 叶小钗
T
Threatpost
Recorded Future
Recorded Future
C
CXSECURITY Database RSS Feed - CXSecurity.com
宝玉的分享
宝玉的分享
N
News and Events Feed by Topic
人人都是产品经理
人人都是产品经理
The Register - Security
The Register - Security
S
Security Archives - TechRepublic
博客园 - Franky
N
News | PayPal Newsroom
Simon Willison's Weblog
Simon Willison's Weblog
S
SegmentFault 最新的问题
W
WeLiveSecurity
A
Arctic Wolf
B
Blog

博客园 - 小朱猪

2022年终总结 关于DELL服务器风扇远程控制失效 20220513-关于创业-关于创业感悟-第三点五篇-关于合作与合伙 关于创业感悟-第六篇-关于合规 关于创业感悟-第三篇-关于人员与业务 关于创业感悟-第五篇-关于现金流 20220513-关于创业-关于创业感悟-第二篇-关于亲属 关于创业感悟-第一篇-关于夫妻店 - 小朱猪 2021年度总结暨2022年归来 2020年度总结 写在2018的总结 2017-新征程-新起点-走在创业的路上 你人生中的那口井挖了没有?-的读后感 增广贤文 来京两年啦 如何提高自制力 更新。。。 发错短信的后果 创业与爱情
真正免费的JS获取IP经纬度,FREE IP - 小朱猪 - 博客园
小朱猪 · 2010-04-23 · via 博客园 - 小朱猪

经过一个多月的开发过程,www.ip-look-up.com JavaScript API接口终于上线了, 目前我在国内相应网站上还没有发现通过js参数获得来获得对应IP的警卫的API,Google的IpAPI只能获得当前请求的API 地址,而且目前还处于Beta版本,还多IP地址有的经纬度的误差。

下面介绍一下使用吧

获取请求地址的经纬度信息

<script type="text/javascript" src="http://www.ip-look-up.com/Services/ipInfo.js"></script> 

获得经度信息 ipLocation.latitude

获得维度信息 ipLocation.longitude

获得对应的城市 ipLocation.address.city

获得相应的国家 ipLocation.address.country

国家代码 ipLocation.address.country_code

城市所属地区 ipLocation.address.region

 获得指定IP的相应信息

<script type="text/javascript" src="http://www.ip-look-up.com/Services/ipInfo.js?=202.108.99.55"></script> 

 调用JS方法同上。

欢迎大家使用。