文件名称:SafetyNetMobile
- 所属分类:
- 系统编程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 131kb
- 下载次数:
- 0次
- 提 供 者:
- 尚**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
通过Web页面获取基站位置Web端源码
首先要清楚一点的是,每一个基站都能够通过请求http://www.google.com/loc/json获取到一个经纬度。如果用户能够在短时间内获取到较多的基站信息,比如4个或5个,可以通过这几个基站的经纬度计算出比较准确的用户位置。
举个例子,比如我在WM上取到4个基站信息:
50554,9513,460,1
50325,9513,460,1
50584,9513,460,1
50041,9513,460,1
每一行的4个数值分别对应:CID, LAC, MCC, MNC
CID——CellID,表示基站号
LAC——Location Area Code,表示区域编号
MCC——Mobile Country Code,表示国家编号,中国是460
MNC——Mobile Network Code,表示移动网络编号,移动是0,联通是1
然后向Google发送基站信息是通过JSON串以Post的形式发送到http://www.google.com/loc/json,然后它会返回一个包含经纬度信息的JSON串-Web page for the base station location by Web-side source
First of all must be aware that each base station can request http://www.google.com/loc/json get through to a latitude and longitude. If the user can quickly access to the base station more information, such as 4 or 5, these base stations can be calculated more accurate latitude and longitude of the user location.
For example, such as WM, I get to 4 on the base station information:
50554,9513,460,1
50325,9513,460,1
50584,9513,460,1
50041,9513,460,1
Each line of the four values correspond to: CID, LAC, MCC, MNC
CID- CellID, said base station No.
LAC- Location Area Code, said regional code
MCC- Mobile Country Code, said the national numbers, China is 460
MNC- Mobile Network Code, said the mobile network number, mobile is 0, Unicom is a
Base station then sends the information to the Google JSON string through the form to send to the Post http://www.google.com/loc/json, then it will re
首先要清楚一点的是,每一个基站都能够通过请求http://www.google.com/loc/json获取到一个经纬度。如果用户能够在短时间内获取到较多的基站信息,比如4个或5个,可以通过这几个基站的经纬度计算出比较准确的用户位置。
举个例子,比如我在WM上取到4个基站信息:
50554,9513,460,1
50325,9513,460,1
50584,9513,460,1
50041,9513,460,1
每一行的4个数值分别对应:CID, LAC, MCC, MNC
CID——CellID,表示基站号
LAC——Location Area Code,表示区域编号
MCC——Mobile Country Code,表示国家编号,中国是460
MNC——Mobile Network Code,表示移动网络编号,移动是0,联通是1
然后向Google发送基站信息是通过JSON串以Post的形式发送到http://www.google.com/loc/json,然后它会返回一个包含经纬度信息的JSON串-Web page for the base station location by Web-side source
First of all must be aware that each base station can request http://www.google.com/loc/json get through to a latitude and longitude. If the user can quickly access to the base station more information, such as 4 or 5, these base stations can be calculated more accurate latitude and longitude of the user location.
For example, such as WM, I get to 4 on the base station information:
50554,9513,460,1
50325,9513,460,1
50584,9513,460,1
50041,9513,460,1
Each line of the four values correspond to: CID, LAC, MCC, MNC
CID- CellID, said base station No.
LAC- Location Area Code, said regional code
MCC- Mobile Country Code, said the national numbers, China is 460
MNC- Mobile Network Code, said the mobile network number, mobile is 0, Unicom is a
Base station then sends the information to the Google JSON string through the form to send to the Post http://www.google.com/loc/json, then it will re
(系统自动生成,下载前可以参看下载内容)
下载文件列表
App_Code\CellInfocs.cs
........\LocationService.cs
Default.aspx
Default.aspx.cs
index.html
RequestTest.aspx
RequestTest.aspx.cs
Web.Config
51aspx源码必读.txt
SafetyNetMobile.sln
SafetyNetMobile.suo
App_Code
App_Data
Bin
........\LocationService.cs
Default.aspx
Default.aspx.cs
index.html
RequestTest.aspx
RequestTest.aspx.cs
Web.Config
51aspx源码必读.txt
SafetyNetMobile.sln
SafetyNetMobile.suo
App_Code
App_Data
Bin