ip119.84.在ip定位地图在线查询哪里

> 博客详情
最近在做一个手机端的webapp地图应用,而核心内容当然是定位了,但是定位的话有几种方式,IP定位,GPS定位,基站定位(这个貌似webapp用不了), 那么剩下核心的gps定位和ip定位了,我们知道,html5有定位API,但是该API拿到的GPS数据是硬件坐标,无法直接显示在地图上。 后来上百度LBS云看到有地图IP定位API和GPS坐标转换API,地址:&百度地图API的调用需要申请KEY,这里就不具体介绍了,直接贴上本人写了两个关键方法,为了方便前台调用,返回数据采用以下格式 &
&&&&address:&"北京市海淀区西二旗北路",
&&&&province:&"北京市",
&&&&city:&"北京市",
&&&&street:&"西二旗北路",
&&&&street_number:&"",
&&&&city_code:&131,
&&&&lng:&116.,
&&&&lat:&40.
&*&@author&xialei&&&
&private&static&$_
&const&REQ_GET&=&1;
&const&REQ_POST&=&2;
&&*&单例模式
&&*&@return&map
&public&static&function&instance()
&&if&(!self::$_instance&instanceof&self)
&&&self::$_instance&=&new&
&&return&self::$_
&&*&执行CURL请求
&&*&@author:&xialei&&
&&*&@param&$url
&&*&@param&array&$params
&&*&@param&bool&$encode
&&*&@param&int&$method
&&*&@return&mixed
&private&function&async($url,&$params&=&array(),&$encode&=&true,&$method&=&self::REQ_GET)
&&$ch&=&curl_init();
&&if&($method&==&self::REQ_GET)
&&&$url&=&$url&.&'?'&.&http_build_query($params);
&&&$url&=&$encode&?&$url&:&urldecode($url);
&&&curl_setopt($ch,&CURLOPT_URL,&$url);
&&&curl_setopt($ch,&CURLOPT_URL,&$url);
&&&curl_setopt($ch,&CURLOPT_POST,&true);
&&&curl_setopt($ch,&CURLOPT_POSTFIELDS,&$params);
&&curl_setopt($ch,&CURLOPT_REFERER,&'百度地图referer');
&&curl_setopt($ch,&CURLOPT_USERAGENT,&'Mozilla/5.0&(iP&CPU&iPhone&OS&7_0&like&Mac&OS&X;&en-us)&AppleWebKit/537.51.1&(KHTML,&like&Gecko)&Version/7.0&Mobile/11A465&Safari/9537.53');
&&curl_setopt($ch,&CURLOPT_RETURNTRANSFER,&1);
&&$resp&=&curl_exec($ch);
&&curl_close($ch);
&&return&$
&&*&ip定位
&&*&@param&string&$ip
&&*&@return&array
&&*&@throws&Exception
&public&function&locationByIP($ip)
&&//检查是否合法IP
&&if&(!filter_var($ip,&FILTER_VALIDATE_IP))
&&&throw&new&Exception('ip地址不合法');
&&$params&=&array(
&&&&'ak'&=&&'百度地图API&KEY',
&&&&'ip'&=&&$ip,
&&&&'coor'&=&&'bd09ll'//百度地图GPS坐标
&&$api&=&'http://api.map.baidu.com/location/ip';
&&$resp&=&$this-&async($api,&$params);
&&$data&=&json_decode($resp,&true);
&&//有错误
&&if&($data['status']&!=&0)
&&&throw&new&Exception($data['message']);
&&//返回地址信息
&&return&array(
&&&&'address'&=&&$data['content']['address'],
&&&&'province'&=&&$data['content']['address_detail']['province'],
&&&&'city'&=&&$data['content']['address_detail']['city'],
&&&&'district'&=&&$data['content']['address_detail']['district'],
&&&&'street'&=&&$data['content']['address_detail']['street'],
&&&&'street_number'&=&&$data['content']['address_detail']['street_number'],
&&&&'city_code'&=&&$data['content']['address_detail']['city_code'],
&&&&'lng'&=&&$data['content']['point']['x'],
&&&&'lat'&=&&$data['content']['point']['y']
&&*&GPS定位
&&*&@param&$lng
&&*&@param&$lat
&&*&@return&array
&&*&@throws&Exception
&public&function&locationByGPS($lng,&$lat)
&&$params&=&array(
&&&&'coordtype'&=&&'wgs84ll',
&&&&'location'&=&&$lat&.&','&.&$lng,
&&&&'ak'&=&&'百度地图API&KEY',
&&&&'output'&=&&'json',
&&&&'pois'&=&&0
&&$resp&=&$this-&async('http://api.map.baidu.com/geocoder/v2/',&$params,&false);
&&$data&=&json_decode($resp,&true);
&&if&($data['status']&!=&0)
&&&throw&new&Exception($data['message']);
&&return&array(
&&&&'address'&=&&$data['result']['formatted_address'],
&&&&'province'&=&&$data['result']['addressComponent']['province'],
&&&&'city'&=&&$data['result']['addressComponent']['city'],
&&&&'street'&=&&$data['result']['addressComponent']['street'],
&&&&'street_number'&=&&$data['result']['addressComponent']['street_number'],
&&&&'city_code'=&$data['result']['cityCode'],
&&&&'lng'=&$data['result']['location']['lng'],
&&&&'lat'=&$data['result']['location']['lat']
调用方法就不说了。稍微看一下源代码就可以知道的
近期我也做了一个根据IP解析出省市区编码的应用,可以将IP转换为citycode,利于程序处理
支付宝支付
微信扫码支付
打赏金额: ¥
已支付成功
打赏金额: ¥倩女幽魂怪物分布地图查询专题_多玩游戏网
  说明:以下地图导航按怪物分布等级从高至低排列,鼠标悬浮可查看怪物等级区间。点击地图名可查看该地图怪物分布及怪物详细信息。 |
? 【天 姥 仙 山】 ?
  温馨提示:当前地图怪物较多时,可以使用ctrl+F打开浏览器查询框,输入怪物名称可快速定位查找相应的怪物。说明:倩女幽魂中的怪物大部分是混杂在一起分布的,本专题中提供的坐标为任务时自动寻路最佳怪物分布坐标。
感谢你对多玩独家专题的支持,欢迎您!
疑问、查错、提供更详细资料也请与我们
友情链接:北京IP地址段、中国北京IP段、北京(省/市/其它)IP地址分布--查错网
北京IP地址段、北京IP段、北京IP地址段分布概况
截止到:,北京IP数是:个 北京Ip段数据下载,&&
其它省分地区:
110.96.0.0110.127.255.255
111.128.0.0111.159.255.255
101.144.0.0101.159.255.255
114.240.0.0114.255.255.255
117.112.0.0117.119.255.255
124.200.0.0124.207.255.255
101.196.0.0101.199.255.255
101.120.0.0101.123.255.255
111.208.0.0111.211.255.255
110.40.0.0110.43.255.255
222.28.0.0222.31.255.255
211.160.0.0211.163.255.255
121.68.0.0121.71.255.255
42.196.0.042.199.255.255
202.204.0.0202.207.255.255
1.88.0.01.91.255.255
58.116.0.058.119.255.255
175.188.0.0175.191.255.255
218.246.0.0218.247.255.255
117.106.0.0117.107.255.255
121.194.0.0121.195.255.255
124.64.0.0124.65.255.255
118.228.0.0118.229.255.255
210.82.0.0210.83.255.255
119.254.0.0119.255.255.255
223.0.0.0223.1.255.255
101.200.0.0101.201.255.255
42.158.0.042.159.255.255
180.78.0.0180.79.255.255
58.30.0.058.31.255.255
110.94.0.0110.95.255.255
123.60.0.0123.61.255.255
121.89.0.0121.89.255.255
119.57.0.0119.57.255.255
202.112.0.0202.112.255.255
36.254.0.036.254.255.255
180.76.0.0180.76.255.255
116.69.0.0116.69.255.255
106.50.0.0106.50.255.255
113.209.0.0113.209.255.255
180.77.0.0180.77.255.255
117.75.0.0117.75.255.255
123.99.128.0123.99.255.255
125.61.128.0125.61.255.255
42.194.128.042.194.255.255
113.208.128.0113.208.255.255
101.96.128.0101.96.255.255
58.68.128.058.68.255.255
42.201.0.042.201.127.255
119.161.128.0119.161.255.255
117.122.128.0117.122.255.255
202.189.0.0202.189.63.255
222.249.192.0222.249.255.255
121.79.128.0121.79.191.255
113.212.0.0113.212.63.255
125.208.0.0125.208.63.255
202.4.128.0202.4.159.255
203.93.160.0203.93.191.255
182.48.96.0182.48.127.255
115.84.192.0115.84.223.255
110.173.0.0110.173.31.255
121.52.160.0121.52.191.255
202.113.240.0202.113.255.255
202.127.144.0202.127.159.255
223.223.176.0223.223.191.255
222.249.176.0222.249.191.255
203.81.16.0203.81.31.255
119.18.192.0119.18.207.255
121.58.144.0121.58.159.255
123.108.208.0123.108.223.255
180.94.96.0180.94.111.255
27.112.80.027.112.95.255
182.50.112.0182.50.127.255
116.193.16.0116.193.31.255
124.108.40.0124.108.47.255
111.118.200.0111.118.207.255
202.127.216.0202.127.223.255
203.158.16.0203.158.23.255
111.223.240.0111.223.243.255
103.247.168.0103.247.171.255
202.95.0.0202.95.3.255
203.119.80.0203.119.83.255
103.3.84.0103.3.87.255
103.23.56.0103.23.59.255
202.127.6.0202.127.7.255
202.127.4.0202.127.4.255
202.127.3.0202.127.3.255
123.64.0.0123.95.255.255
175.64.0.0175.95.255.255
42.208.0.042.223.255.255
175.48.0.0175.63.255.255
221.216.0.0221.223.255.255
101.236.0.0101.239.255.255
101.244.0.0101.247.255.255
101.104.0.0101.107.255.255
112.124.0.0112.127.255.255
106.52.0.0106.55.255.255
222.128.0.0222.131.255.255
223.4.0.0223.7.255.255
118.196.0.0118.199.255.255
118.244.0.0118.247.255.255
120.24.0.0120.27.255.255
1.12.0.01.15.255.255
118.144.0.0118.147.255.255
101.4.0.0101.7.255.255
117.100.0.0117.101.255.255
118.192.0.0118.193.255.255
120.134.0.0120.135.255.255
182.174.0.0182.175.255.255
123.196.0.0123.197.255.255
123.56.0.0123.57.255.255
49.210.0.049.211.255.255
223.20.0.0223.21.255.255
101.124.0.0101.125.255.255
60.206.0.060.207.255.255
106.48.0.0106.49.255.255
125.96.0.0125.97.255.255
220.154.0.0220.155.255.255
61.135.0.061.135.255.255
42.195.0.042.195.255.255
120.133.0.0120.133.255.255
119.253.0.0119.253.255.255
202.108.0.0202.108.255.255
118.188.0.0118.188.255.255
210.25.0.0210.25.255.255
114.215.0.0114.215.255.255
211.154.0.0211.154.255.255
106.11.0.0106.11.255.255
101.54.0.0101.54.255.255
124.248.0.0124.248.127.255
124.21.128.0124.21.255.255
116.213.128.0116.213.255.255
219.83.128.0219.83.255.255
42.96.128.042.96.255.255
42.240.128.042.240.255.255
223.252.128.0223.252.255.255
120.132.128.0120.132.255.255
117.121.0.0117.121.127.255
122.200.64.0122.200.127.255
110.172.192.0110.172.255.255
116.213.64.0116.213.127.255
117.120.64.0117.120.127.255
203.192.0.0203.192.31.255
202.130.224.0202.130.255.255
203.92.160.0203.92.191.255
116.199.128.0116.199.159.255
111.91.192.0111.91.223.255
210.73.0.0210.73.31.255
101.78.32.0101.78.63.255
203.95.112.0203.95.127.255
202.152.176.0202.152.191.255
203.135.160.0203.135.175.255
203.99.16.0203.99.31.255
202.179.240.0202.179.255.255
119.38.192.0119.38.207.255
121.101.208.0121.101.223.255
124.21.0.0124.21.15.255
202.85.208.0202.85.223.255
110.173.32.0110.173.47.255
113.130.96.0113.130.111.255
116.90.80.0116.90.95.255
202.95.8.0202.95.15.255
203.83.56.0203.83.63.255
203.91.120.0203.91.127.255
103.3.128.0103.3.131.255
103.6.76.0103.6.79.255
103.28.8.0103.28.11.255
202.4.252.0202.4.255.255
203.119.32.0203.119.35.255
103.3.120.0103.3.123.255
202.14.236.0202.14.237.255
202.38.176.0202.38.177.255
202.14.238.0202.14.238.255
1.4.4.01.4.4.255
110.192.0.0110.223.255.255
122.64.0.0122.95.255.255
123.112.0.0123.127.255.255
111.192.0.0111.207.255.255
58.128.0.058.135.255.255
171.84.0.0171.87.255.255
116.216.0.0116.219.255.255
223.208.0.0223.211.255.255
113.44.0.0113.47.255.255
115.32.0.0115.35.255.255
115.120.0.0115.123.255.255
116.60.0.0116.63.255.255
180.184.0.0180.187.255.255
114.208.0.0114.211.255.255
61.48.0.061.51.255.255
49.152.0.049.155.255.255
61.232.0.061.235.255.255
121.196.0.0121.199.255.255
121.4.0.0121.5.255.255
117.72.0.0117.73.255.255
223.192.0.0223.193.255.255
124.16.0.0124.17.255.255
119.78.0.0119.79.255.255
116.242.0.0116.243.255.255
14.130.0.014.131.255.255
101.252.0.0101.253.255.255
61.148.0.061.149.255.255
60.194.0.060.195.255.255
1.92.0.01.93.255.255
219.242.0.0219.243.255.255
124.250.0.0124.251.255.255
123.62.0.0123.62.255.255
180.86.0.0180.86.255.255
120.92.0.0120.92.255.255
202.106.0.0202.106.255.255
121.47.0.0121.47.255.255
116.85.0.0116.85.255.255
125.98.0.0125.98.255.255
114.68.0.0114.68.255.255
211.147.0.0211.147.255.255
118.184.0.0118.184.255.255
124.20.0.0124.20.255.255
125.35.0.0125.35.127.255
123.199.128.0123.199.255.255
116.70.0.0116.70.127.255
60.245.128.060.245.255.255
42.156.128.042.156.255.255
42.187.128.042.187.255.255
117.58.0.0117.58.127.255
211.99.128.0211.99.255.255
211.103.128.0211.103.255.255
210.12.64.0210.12.127.255
220.101.192.0220.101.255.255
117.121.128.0117.121.191.255
124.21.64.0124.21.127.255
202.127.224.0202.127.255.255
203.128.32.0203.128.63.255
202.149.224.0202.149.255.255
210.56.192.0210.56.223.255
210.72.128.0210.72.159.255
119.42.224.0119.42.255.255
180.149.128.0180.149.159.255
202.127.112.0202.127.127.255
202.165.208.0202.165.223.255
203.135.112.0203.135.127.255
203.95.96.0203.95.111.255
202.127.16.0202.127.31.255
119.75.208.0119.75.223.255
122.102.0.0122.102.15.255
117.53.48.0117.53.63.255
117.74.64.0117.74.79.255
110.44.144.0110.44.159.255
202.123.96.0202.123.111.255
116.58.208.0116.58.223.255
113.130.112.0113.130.119.255
202.38.184.0202.38.191.255
203.134.240.0203.134.247.255
113.212.100.0113.212.103.255
103.10.84.0103.10.87.255
103.23.160.0103.23.163.255
27.106.204.027.106.207.255
203.114.244.0203.114.247.255
183.81.180.0183.81.183.255
202.38.140.0202.38.141.255
202.14.235.0202.14.235.255
1.2.2.01.2.2.255
36.192.0.036.223.255.255
42.128.0.042.143.255.255
42.160.0.042.175.255.255
58.200.0.058.207.255.255
110.56.0.0110.63.255.255
101.240.0.0101.243.255.255
101.132.0.0101.135.255.255
124.68.0.0124.71.255.255
124.220.0.0124.223.255.255
115.104.0.0115.107.255.255
115.180.0.0115.183.255.255
219.232.0.0219.235.255.255
118.204.0.0118.207.255.255
183.172.0.0183.175.255.255
1.116.0.01.119.255.255
59.64.0.059.67.255.255
49.232.0.049.235.255.255
114.54.0.0114.55.255.255
211.144.0.0211.145.255.255
219.224.0.0219.225.255.255
211.68.0.0211.69.255.255
118.190.0.0118.191.255.255
124.192.0.0124.193.255.255
115.28.0.0115.29.255.255
14.196.0.014.197.255.255
223.202.0.0223.203.255.255
183.84.0.0183.85.255.255
180.202.0.0180.203.255.255
1.94.0.01.95.255.255
1.202.0.01.203.255.255
219.236.0.0219.237.255.255
211.81.0.0211.81.255.255
122.12.0.0122.12.255.255
1.8.0.01.8.255.255
119.80.0.0119.80.255.255
211.100.0.0211.100.255.255
223.201.0.0223.201.255.255
115.47.0.0115.47.255.255
125.34.0.0125.34.255.255
125.33.0.0125.33.255.255
210.77.0.0210.77.255.255
223.255.0.0223.255.127.255
182.18.0.0182.18.127.255
124.42.0.0124.42.127.255
42.83.128.042.83.255.255
101.251.128.0101.251.255.255
59.151.0.059.151.127.255
42.240.0.042.240.127.255
120.132.0.0120.132.127.255
119.10.0.0119.10.127.255
219.158.128.0219.158.255.255
211.101.0.0211.101.63.255
202.96.0.0202.96.63.255
211.99.0.0211.99.63.255
36.0.64.036.0.127.255
202.130.0.0202.130.31.255
202.38.96.0202.38.127.255
203.209.224.0203.209.255.255
124.21.32.0124.21.63.255
110.173.192.0110.173.223.255
120.72.32.0120.72.63.255
110.232.32.0110.232.63.255
223.223.192.0223.223.207.255
210.2.0.0210.2.15.255
203.135.96.0203.135.111.255
203.86.64.0203.86.79.255
202.43.144.0202.43.159.255
121.52.208.0121.52.223.255
122.102.80.0122.102.95.255
202.10.64.0202.10.79.255
202.91.176.0202.91.191.255
111.67.192.0111.67.207.255
202.95.16.0202.95.31.255
124.21.16.0124.21.31.255
180.94.56.0180.94.63.255
203.119.24.0203.119.31.255
202.173.8.0202.173.15.255
111.223.248.0111.223.251.255
103.22.4.0103.22.7.255
202.95.4.0202.95.7.255
103.2.208.0103.2.211.255
103.2.156.0103.2.159.255
202.93.252.0202.93.255.255
202.127.0.0202.127.1.255
202.127.5.0202.127.5.255
202.127.2.0202.127.2.255}

我要回帖

更多关于 ip地址定位地图 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信