<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>安特网 &#187; Wi-Fi定位</title>
	<atom:link href="http://www.anttna.com/archives/tag/wi-fi%e5%ae%9a%e4%bd%8d/feed" rel="self" type="application/rss+xml" />
	<link>http://www.anttna.com</link>
	<description>www.anttna.com</description>
	<lastBuildDate>Mon, 12 Dec 2011 02:35:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>安特网定位api接口汇总</title>
		<link>http://www.anttna.com/archives/1010.html</link>
		<comments>http://www.anttna.com/archives/1010.html#comments</comments>
		<pubDate>Tue, 13 Sep 2011 16:29:21 +0000</pubDate>
		<dc:creator>ant</dc:creator>
				<category><![CDATA[LBS技术]]></category>
		<category><![CDATA[基站定位]]></category>
		<category><![CDATA[定位接口]]></category>
		<category><![CDATA[GPS定位]]></category>
		<category><![CDATA[LBS应用]]></category>
		<category><![CDATA[Wi-Fi定位]]></category>
		<category><![CDATA[手机定位]]></category>

		<guid isPermaLink="false">http://www.anttna.com/?p=1010</guid>
		<description><![CDATA[首先回答一个问题，安特网提供的这些接口有什么用？ 很简单，使用安特网提供的api接口，你可以很方便的建立你的LBS应用，或者基于这些接口实现你的硬件终端上的定位功能。 蚁足网(www.MyMobileTrack.com)就是使用安特网定位api+UCHOME建立的一个LBS应用。 (1).基站定位，基站查询，基站数据库接口 用途：将基站数据转换为GPS经纬度，可解析GSM基站，WCDMA基站，CDMA/CDMA2000基站数据。 接口调用: 最简单的调用: http://www.anttna.com/cell2gps/cell2gps3.php?lac=小区号&#38;cellid=基站号 复杂一点的调用: [GSM/WCDMA]: http://www.anttna.com/cell2gps/cell2gps3.php?type=类型值&#38;mcc=国家码&#38;mnc=网络码&#38;lac=小区号&#38;cellid=基站号 [CDMA/CDMA2000]: http://www.anttna.com/cell2gps/cell2gps3.php?type=类型值&#38;mcc=国家码&#38;mnc=网络码&#38;sid=系统标识号&#38;nid=网络标识号&#38;bid=基站号 参数说明: 基站类型值:1~3. 1-中国移动基站 , 2-中国联通基站 , 3-中国电信基站 mcc:Mobile Country Code 国家代码，所有类型的基站都有这个参数 mnc:Mobile Network Code 运营商代码。 lac: Location Area Code. 小区号(GSM/WCDMA基站) cellid: Cell ID. 基站号(GSM/WCDMA基站) sid:System ID. 系统标识号(CDMA/CDMA2000基站) nid:Network ID. 网络标识号(CDMA/CDMA2000基站) bid:Base Station ID. 基站号(CDMA/CDMA2000基站) 返回结果: UTF8编码 纬度&#124;经度&#124;纠偏后纬度&#124;纠偏后经度&#124;详细地址&#124;精确度(米) 说明：免费用户每天查询上限为200次。 例如:在一台移动GSM手机上获取到的基站信息为,460-0-6253-12354,提交 http://www.anttna.com/cell2gps/cell2gps3.php?lac=6253&#38;cellid=12354 就可得到手机当前的位置。 31.113855&#124;121.423599&#124;31.11195819413&#124;121.42823385718&#124;上海市;闵行区;虹梅南路/春申路(路口)东南180米;上海市合成树脂研究所(普乐路)东北270米;虹梅南苑西南70米;&#124;700， [...]]]></description>
			<content:encoded><![CDATA[<p>首先回答一个问题，安特网提供的这些接口有什么用？<br />
很简单，使用安特网提供的api接口，你可以很方便的建立你的LBS应用，或者基于这些接口实现你的硬件终端上的定位功能。<br />
蚁足网(<a href="www.MyMobileTrack.com" target="_blank">www.MyMobileTrack.com</a>)就是使用安特网定位api+UCHOME建立的一个LBS应用。<span id="more-1010"></span></p>
<p>(1).<span style="color: #ff0000;">基站定位，基站查询，基站数据库接口</span><br />
用途：将基站数据转换为GPS经纬度，可解析GSM基站，WCDMA基站，CDMA/CDMA2000基站数据。<br />
接口调用:</p>
<p>最简单的调用:</p>
<p>http://www.anttna.com/cell2gps/cell2gps3.php?lac=小区号&amp;cellid=基站号</p>
<p>复杂一点的调用:<br />
[GSM/WCDMA]:</p>
<p>http://www.anttna.com/cell2gps/cell2gps3.php?type=类型值&amp;mcc=国家码&amp;mnc=网络码&amp;lac=小区号&amp;cellid=基站号</p>
<p>[CDMA/CDMA2000]:</p>
<p>http://www.anttna.com/cell2gps/cell2gps3.php?type=类型值&amp;mcc=国家码&amp;mnc=网络码&amp;sid=系统标识号&amp;nid=网络标识号&amp;bid=基站号</p>
<p>参数说明:<br />
基站类型值:1~3. 1-中国移动基站 , 2-中国联通基站 , 3-中国电信基站<br />
mcc:Mobile Country Code 国家代码，所有类型的基站都有这个参数<br />
mnc:Mobile Network Code 运营商代码。<br />
lac: Location Area Code. 小区号(GSM/WCDMA基站)<br />
cellid: Cell ID. 基站号(GSM/WCDMA基站)<br />
sid:System ID. 系统标识号(CDMA/CDMA2000基站)<br />
nid:Network ID. 网络标识号(CDMA/CDMA2000基站)<br />
bid:Base Station ID. 基站号(CDMA/CDMA2000基站)</p>
<p>返回结果:<br />
UTF8编码<br />
纬度|经度|纠偏后纬度|纠偏后经度|详细地址|精确度(米)</p>
<p>说明：免费用户每天查询上限为200次。</p>
<p>例如:在一台移动GSM手机上获取到的基站信息为,460-0-6253-12354,提交<a href="http://www.anttna.com/cell2gps/cell2gps3.php?lac=6253&amp;cellid=12354" target="_self"> http://www.anttna.com/cell2gps/cell2gps3.php?lac=6253&amp;cellid=12354</a> 就可得到手机当前的位置。<br />
31.113855|121.423599|31.11195819413|121.42823385718|上海市;闵行区;虹梅南路/春申路(路口)东南180米;上海市合成树脂研究所(普乐路)东北270米;虹梅南苑西南70米;|700，</p>
<p>该结果表明手机当前经纬度位置为:31.113855,121.423599 , 纠偏后为:31.11195819413,121.42823385718 ; 对应地址为:上海市;闵行区;虹梅南路/春申路(路口)东南180米;上海市合成树脂研究所(普乐路)东北270米;虹梅南苑西南70米;<br />
该条结果的精确度(最大误差)为700米。</p>
<p>(2).<span style="color: #ff0000;">Wi-Fi定位接口</span><br />
用途：将Wi-Fi数据(AP的mac)转换为GPS经纬度<br />
接口调用:<br />
http://www.anttna.com/wifi2gps/wifi2gps3.php?mac=AP MAC地址</p>
<p>参数说明:<br />
mac:搜索到的Wi-Fi AP mac地址，格式为: 12:34:56:78:9a:bc</p>
<p>返回结果:<br />
UTF8编码<br />
纬度|经度|纠偏后纬度|纠偏后经度|详细地址|精确度(米)</p>
<p>说明：免费用户每天查询上限为200次。</p>
<p>(3).<span style="color: #ff0000;">经纬度查询接口</span><br />
用途：将GPS经纬度转换为地理位置，xx市xx区xx街道。<br />
接口调用:</p>
<p>http://www.anttna.com/gps2addr/gps2addr3.php?lat=纬度&amp;lon=经度</p>
<p>参数说明:<br />
lat:纬度,点分十进制<br />
lon:经度,点分十进制</p>
<p>返回结果:<br />
UTF8编码<br />
省;市;县;道路标志A;标志点B;标志点C;</p>
<p>说明：免费用户每天查询上限为200次。</p>
<p>例如:当前手机获取的GPS实际经纬度为:31.113855,121.423599,提交 <a href="http://www.anttna.com/gps2addr/gps2addr3.php?lat=31.113855&amp;lon=121.423599" target="_self">http://www.anttna.com/gps2addr/gps2addr3.php?lat=31.113855&amp;lon=121.423599</a> 就可得到该经纬度对应的位置描述:上海市;闵行区;虹梅南路/春申路(路口)东南180米;上海市合成树脂研究所(普乐路)东北270米;虹梅南苑西南70米;<br />
下面的图直观的描述了返回结果的示意,或者直接访问<a href="http://ditu.google.cn/maps?q=31.11195819413,121.42823385718&amp;hl=zh-CN&amp;ll=31.112209,121.428494&amp;spn=0.003619,0.008256&amp;sll=31.092747,121.50656&amp;sspn=0.00724,0.016512&amp;vpsrc=6&amp;brcurrent=3,0x35b2630c1ea9b5c1:0x115f460d9227267a,0,0x35b2633be24b87d5:0xde5e102b16be8828%3B5,0,0&amp;t=m&amp;z=18" target="_blank">google地图查看</a>。</p>
<p>点击图片查看大图</p>
<p><a href="http://www.anttna.com/wp-content/uploads/2011/09/gps2addr-example.png" class="highslide-image" onclick="return hs.expand(this);"><img class="alignnone size-medium wp-image-1026" title="gps2addr-example" src="http://www.anttna.com/wp-content/uploads/2011/09/gps2addr-example.png" alt="" width="600" height="472" /></a></p>
<p>因为使用自主算法，ANT博客经纬度查询结果要优于Google的<a title="3个主题" href="http://www.anttna.com/archives/tag/geolocationapi">GeolocationAPI</a>接口。</p>
<p>(4).<span style="color: #ff0000;">纠偏/反纠偏接口</span><br />
之前已有介绍，详见<br />
<a rel="bookmark" href="http://www.anttna.com/archives/1006.html">纠偏/反纠偏接口</a><br />
说明：免费用户每天查询上限为5000次。</p>
<p>如果在接口使用过程中有什么问题，或者对接口有定制需求，可以给我发邮件 <a href="mailto:anttna123@gmail.com">anttna123@gmail.com</a> .</p>
<p><p><script type="text/javascript"><!--
google_ad_client = "pub-4525448440186199";
google_ad_slot = "0511824612";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.anttna.com/archives/1010.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>再次验证手机基站定位</title>
		<link>http://www.anttna.com/archives/515.html</link>
		<comments>http://www.anttna.com/archives/515.html#comments</comments>
		<pubDate>Tue, 23 Feb 2010 18:31:59 +0000</pubDate>
		<dc:creator>ant</dc:creator>
				<category><![CDATA[LBS技术]]></category>
		<category><![CDATA[基站定位]]></category>
		<category><![CDATA[基站验证]]></category>
		<category><![CDATA[基站测试]]></category>
		<category><![CDATA[GPS定位]]></category>
		<category><![CDATA[MobileTrack]]></category>
		<category><![CDATA[Wi-Fi定位]]></category>

		<guid isPermaLink="false">http://www.anttna.com/?p=515</guid>
		<description><![CDATA[去年的分析日志：http://www.anttna.com/archives/9.html 今年，同样的路线，同样的车次，不同的是MobileTrack软件经过了一年的不断开发，变得越来越成熟，功能也越来越强大。现在的MobileTrack是集基站定位，Wi-Fi定位，GPS定位于一身的手机综合定位软件。 这次1800公里的路程采集到了1100多个基站，是上次采集数量的10倍。全程基站分布比较均匀。上次日志提到的“从天津-济南及济南-徐州这两段几百公里的路程中基站id一直不变”的问题也没有出现，看来正如tourist 所言，当时是我的程序有问题。 沈阳-南京全程的轨迹图（点击全屏查看） 下面是使用网站的导出功能导出KML后在google earth下查看的效果 BTW：写到这里，有一些感慨，一年过得真快。回首过去这一年，在忙碌中度过，有收获也有失望。工作虽然忙，每天也要抽出点时间做些自己感兴趣的事。lp开玩笑说，她很羡慕，我每天都在做自己喜欢的事，全身心的投入。我喜欢计算机，喜欢网络，喜欢智能机，喜欢航模，喜欢各种电子设备。。。每天看各种屏幕的时间比看lp的时间要长。所有的成功都是因为有lp在背后默默的支持我，感谢lp。]]></description>
			<content:encoded><![CDATA[<p>去年的分析日志：<a href="http://www.anttna.com/archives/9.html" target="_blank">http://www.anttna.com/archives/9.html</a><br />
今年，同样的路线，同样的车次，不同的是MobileTrack软件经过了一年的不断开发，变得越来越成熟，功能也越来越强大。现在的MobileTrack是集基站定位，Wi-Fi定位，GPS定位于一身的手机综合定位软件。<span id="more-515"></span></p>
<p>这次1800公里的路程采集到了1100多个基站，是上次采集数量的10倍。全程基站分布比较均匀。上次日志提到的“从天津-济南及济南-徐州这两段几百公里的路程中基站id一直不变”的问题也没有出现，看来正如tourist 所言，当时是我的程序有问题。</p>
<p>沈阳-南京全程的轨迹图（点击全屏查看）<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="500" height="300" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="align" value="middle" /><param name="src" value="http://www.mymobiletrack.com/mobile/showshare.swf?id=137&amp;f=1" /><param name="allowfullscreen" value="true" /><param name="quality" value="high" /><embed type="application/x-shockwave-flash" width="500" height="300" src="http://www.mymobiletrack.com/mobile/showshare.swf?id=137&amp;f=1" quality="high" allowfullscreen="true" align="middle"></embed></object></p>
<p>下面是使用网站的导出功能导出KML后在google earth下查看的效果</p>
<p><a href="http://www.anttna.com/wp-content/uploads/2010/02/export5.png" class="highslide-image" onclick="return hs.expand(this);" target="_blank"><img class="alignnone size-full wp-image-516" title="export5" src="http://www.anttna.com/wp-content/uploads/2010/02/export5.png" alt="" width="500" height="300" /></a></p>
<p>BTW：写到这里，有一些感慨，一年过得真快。回首过去这一年，在忙碌中度过，有收获也有失望。工作虽然忙，每天也要抽出点时间做些自己感兴趣的事。lp开玩笑说，她很羡慕，我每天都在做自己喜欢的事，全身心的投入。我喜欢计算机，喜欢网络，喜欢智能机，喜欢航模，喜欢各种电子设备。。。每天看各种屏幕的时间比看lp的时间要长。所有的成功都是因为有lp在背后默默的支持我，感谢lp。</p>
<p><p><script type="text/javascript"><!--
google_ad_client = "pub-4525448440186199";
google_ad_slot = "0511824612";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.anttna.com/archives/515.html/feed</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Wi-Fi查询之SkyHook接口</title>
		<link>http://www.anttna.com/archives/371.html</link>
		<comments>http://www.anttna.com/archives/371.html#comments</comments>
		<pubDate>Thu, 07 Jan 2010 05:44:26 +0000</pubDate>
		<dc:creator>ant</dc:creator>
				<category><![CDATA[LBS技术]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[Skyhook]]></category>
		<category><![CDATA[Wi-Fi定位]]></category>
		<category><![CDATA[Wi-Fi查询接口]]></category>

		<guid isPermaLink="false">http://www.anttna.com/?p=371</guid>
		<description><![CDATA[SkyHook是一家专注于Wi-Fi定位技术的公司，也是iphone的合作伙伴。iPhone/iPod touch 1.1.3版本Google Maps中提供的定位技术部分就来自于这家公司。 SkyHook提供了SDK供程序开发者调用，通过SkyHook的接口可以很容易的在多平台下(Windows,Linux,Mac OS,Android,Symbian)实现Wi-Fi定位。 SkyHook SDK封装了底层的操作，开发者并不能接触到Wi-Fi查询的具体细节，SkyHook网站上也没有查询接口的公开文档。 这里简单介绍一下skyhook的wi-fi查询接口。 skyhook查询接口为：https://api.skyhookwireless.com/wps2/location 。 查询时，向 https://api.skyhookwireless.com/wps2/location 提交wi-fi热点的mac地址，提交数据为XML格式，例如下面这样的： &#60;?xml version='1.0'?&#62;&#60;LocationRQ xmlns='http://skyhookwireless.com/wps/2005' version='2.7' street-address-lookup='none'&#62;&#60;authentication version='2.0'&#62;&#60;simple&#62;&#60;username&#62;skyhookwireless.com&#60;/username&#62;&#60;realm&#62;js.loki.com&#60;/realm&#62;&#60;/simple&#62;&#60;/authentication&#62;&#60;access-point&#62;&#60;mac&#62;xxxxxxxxxxxx&#60;/mac&#62;&#60;signal-strength&#62;-44&#60;/signal-strength&#62;&#60;age&#62;3407&#60;/age&#62;&#60;/access-point&#62;&#60;/LocationRQ&#62; authentication是认证的部分，包含username和realm两个标签，使用默认值即可。 access-point是wifi信息部分，包含mac，signal-strength，age三个标签。 mac地址格式没有连接字符，比如mac地址为12:34:56:78:9a:bc,提交时需要转化为123456789abc。 signal-strength表示信号强度 age：表示检测到该wi-fi热点起到现在经过的时间 经测试signal-strength和age这两个值不会影响查询结果。 提交查询后，skyhook接口查询到对应的记录，返回如下信息 如果没有对应的记录，则返回“unable to determine location&#8221; SkyHook现在主要是面向北美，中国地区的数据还不多。而且他的采集数据方式也比较落后，派采集车每天在美国各个城市跑数据。没有像google这样的数量庞大的客户端，估计以后还得和google合作。]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.skyhookwireless.com/" target="_blank">SkyHook</a>是一家专注于Wi-Fi定位技术的公司，也是<a href="http://www.apple.com/iphone/" target="_blank">iphone</a>的合作伙伴。iPhone/iPod touch 1.1.3版本Google Maps中提供的定位技术部分就来自于这家公司。<span id="more-371"></span><br />
SkyHook提供了<a href="http://www.skyhookwireless.com/developers/sdk.php" target="_blank">SDK</a>供程序开发者调用，通过SkyHook的接口可以很容易的在多平台下(Windows,Linux,Mac OS,Android,Symbian)实现Wi-Fi定位。</p>
<p><a href="http://www.skyhookwireless.com/developers/sdk.php" target="_blank">SkyHook SDK</a>封装了底层的操作，开发者并不能接触到Wi-Fi查询的具体细节，SkyHook网站上也没有查询接口的公开文档。</p>
<p>这里简单介绍一下skyhook的wi-fi查询接口。</p>
<p>skyhook查询接口为：https://api.skyhookwireless.com/wps2/location 。<br />
查询时，向 https://api.skyhookwireless.com/wps2/location 提交wi-fi热点的mac地址，提交数据为XML格式，例如下面这样的：</p>
<pre class="brush: cpp; title: ;">
&lt;?xml version='1.0'?&gt;&lt;LocationRQ xmlns='http://skyhookwireless.com/wps/2005' version='2.7' street-address-lookup='none'&gt;&lt;authentication version='2.0'&gt;&lt;simple&gt;&lt;username&gt;skyhookwireless.com&lt;/username&gt;&lt;realm&gt;js.loki.com&lt;/realm&gt;&lt;/simple&gt;&lt;/authentication&gt;&lt;access-point&gt;&lt;mac&gt;xxxxxxxxxxxx&lt;/mac&gt;&lt;signal-strength&gt;-44&lt;/signal-strength&gt;&lt;age&gt;3407&lt;/age&gt;&lt;/access-point&gt;&lt;/LocationRQ&gt;
</pre>
<p>authentication是认证的部分，包含username和realm两个标签，使用默认值即可。<br />
access-point是wifi信息部分，包含mac，signal-strength，age三个标签。</p>
<p>mac地址格式没有连接字符，比如mac地址为12:34:56:78:9a:bc,提交时需要转化为123456789abc。<br />
signal-strength表示信号强度<br />
age：表示检测到该wi-fi热点起到现在经过的时间<br />
经测试signal-strength和age这两个值不会影响查询结果。</p>
<p>提交查询后，skyhook接口查询到对应的记录，返回如下信息<br />
<a href="http://www.anttna.com/wp-content/uploads/2010/01/skyhook_success.png" class="highslide-image" onclick="return hs.expand(this);"><img class="alignnone size-full wp-image-379" title="skyhook_success" src="http://www.anttna.com/wp-content/uploads/2010/01/skyhook_success.png" alt="" width="502" height="271" /></a></p>
<p>如果没有对应的记录，则返回“unable to determine location&#8221;</p>
<p><a href="http://www.anttna.com/wp-content/uploads/2010/01/skyhook_error.png" class="highslide-image" onclick="return hs.expand(this);"><img class="alignnone size-full wp-image-380" title="skyhook_error" src="http://www.anttna.com/wp-content/uploads/2010/01/skyhook_error.png" alt="" width="502" height="257" /></a></p>
<p>SkyHook现在主要是面向北美，中国地区的数据还不多。而且他的采集数据方式也比较落后，派采集车每天在美国各个城市跑数据。没有像google这样的数量庞大的客户端，估计以后还得和google合作。<br />
<p><script type="text/javascript"><!--
google_ad_client = "pub-4525448440186199";
google_ad_slot = "0511824612";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.anttna.com/archives/371.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Wi-Fi查询之GeolocationAPI接口</title>
		<link>http://www.anttna.com/archives/387.html</link>
		<comments>http://www.anttna.com/archives/387.html#comments</comments>
		<pubDate>Thu, 07 Jan 2010 05:20:23 +0000</pubDate>
		<dc:creator>ant</dc:creator>
				<category><![CDATA[LBS技术]]></category>
		<category><![CDATA[gears]]></category>
		<category><![CDATA[GeolocationAPI]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[Wi-Fi定位]]></category>
		<category><![CDATA[Wi-Fi查询接口]]></category>

		<guid isPermaLink="false">http://www.anttna.com/?p=387</guid>
		<description><![CDATA[Google GeolocationAPI 是google的综合定位接口。基站定位，Wi-Fi定位，GPS定位都可以通过gears GeolocationAPI来查询。本文主要介绍GeolocationAPI的Wi-Fi查询功能以及使用方法。 GeolocationAPI google有官方的详细api说明。GeolocationAPI接口使用HTTP协议，交互数据为json语法。 除了必须的version，host参数外，涉及到wi-fi查询的主要有以下几个参数： mac_address：Wi-Fi热点的mac地址,格式为12:34:56:78:9a:bc signal_strength:信号强度 下面的参数是可选的: ssid:Wi-Fi热点的SSID age:距离检测到该Wi-Fi热点起经过了多长时间 channel:该Wi-Fi热点所使用的channel（1～11） signal_to_noise：信噪比(dB) 我们来实际测试一下： 构造一个简单的json查询格式 { "host": "maps.google.com", "version": "1.1.0", "wifi_towers": [ { "mac_address" : "00:0F:xx:xx:xx:xx", "signal_strength" : -73} ] } 查询wifi的经纬度 查询wifi的经纬度+地理位置]]></description>
			<content:encoded><![CDATA[<p><a href="http://code.google.com/p/gears/wiki/GeolocationAPI" target="_blank">Google GeolocationAPI</a> 是google的综合定位接口。基站定位，Wi-Fi定位，GPS定位都可以通过gears GeolocationAPI来查询。本文主要介绍GeolocationAPI的Wi-Fi查询功能以及使用方法。<span id="more-387"></span><br />
<a href="http://code.google.com/p/gears/wiki/GeolocationAPI" target="_blank">GeolocationAPI</a> google有官方的详细api说明。<a href="http://code.google.com/p/gears/wiki/GeolocationAPI" target="_blank">GeolocationAPI接口</a>使用HTTP协议，交互数据为json语法。</p>
<p>除了必须的version，host参数外，涉及到wi-fi查询的主要有以下几个参数：<br />
mac_address：Wi-Fi热点的mac地址,格式为12:34:56:78:9a:bc<br />
signal_strength:信号强度</p>
<p>下面的参数是可选的:<br />
ssid:Wi-Fi热点的SSID<br />
age:距离检测到该Wi-Fi热点起经过了多长时间<br />
channel:该Wi-Fi热点所使用的channel（1～11）<br />
signal_to_noise：信噪比(dB)</p>
<p>我们来实际测试一下：</p>
<p>构造一个简单的json查询格式</p>
<pre>{
"host": "maps.google.com",
"version": "1.1.0",
"wifi_towers": [
{
"mac_address" : "00:0F:xx:xx:xx:xx",
"signal_strength" : -73}
]
}
</pre>
<p>查询wifi的经纬度<br />
<a href="http://www.anttna.com/wp-content/uploads/2010/01/gears1.png" class="highslide-image" onclick="return hs.expand(this);"><img class="alignnone size-full wp-image-388" title="gears1" src="http://www.anttna.com/wp-content/uploads/2010/01/gears1.png" alt="" width="499" height="225" /></a></p>
<p>查询wifi的经纬度+地理位置<br />
<a href="http://www.anttna.com/wp-content/uploads/2010/01/gears2.png" class="highslide-image" onclick="return hs.expand(this);"><img class="alignnone size-full wp-image-389" title="gears2" src="http://www.anttna.com/wp-content/uploads/2010/01/gears2.png" alt="" width="499" height="282" /></a><br />
<p><script type="text/javascript"><!--
google_ad_client = "pub-4525448440186199";
google_ad_slot = "0511824612";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.anttna.com/archives/387.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>新增Wi-Fi查询</title>
		<link>http://www.anttna.com/archives/124.html</link>
		<comments>http://www.anttna.com/archives/124.html#comments</comments>
		<pubDate>Tue, 03 Nov 2009 13:46:58 +0000</pubDate>
		<dc:creator>ant</dc:creator>
				<category><![CDATA[程序天空]]></category>
		<category><![CDATA[MobileTrack]]></category>
		<category><![CDATA[Wi-Fi定位]]></category>
		<category><![CDATA[Wi-Fi查询]]></category>
		<category><![CDATA[wifi定位]]></category>
		<category><![CDATA[wifi查询]]></category>

		<guid isPermaLink="false">http://www.anttna.com/?p=124</guid>
		<description><![CDATA[MobileTrack支持wi-fi定位，为了方便大家查询单个wifi热点的位置，在 lain 的建议下，本站新增wifi查询。 查询地址: http://www.anttna.com/wifi2gps/index.php 查询时输入wifi热点的mac地址，例如“11:22:33:44:55:66&#8243;,就可以查询该热点对应的位置。 在编写wifi查询时，ELM给了我很大的帮助，非常感谢ELM。]]></description>
			<content:encoded><![CDATA[<p>MobileTrack支持wi-fi定位，为了方便大家查询单个wifi热点的位置，在 <a href="http://lainzy.oicp.net/" target="_blank">lain</a> 的建议下，本站新增wifi查询。</p>
<p>查询地址: <a href="http://www.anttna.com/wifi2gps/index.php" target="_blank">http://www.anttna.com/wifi2gps/index.php</a></p>
<p>查询时输入wifi热点的mac地址，例如“11:22:33:44:55:66&#8243;,就可以查询该热点对应的位置。<br />
在编写wifi查询时，<a title="ELM" href="http://www.wenzk.com" target="_blank">ELM</a>给了我很大的帮助，非常感谢<a title="elm" href="http://www.wenzk.com" target="_blank">ELM</a>。</p>
<p><span id="more-124"></span><img class="alignnone size-full wp-image-125" title="wifi_pic" src="http://www.anttna.com/wp-content/uploads/2009/11/wifi_pic.JPG" alt="wifi_pic" width="633" height="467" /></p>
<p><p><script type="text/javascript"><!--
google_ad_client = "pub-4525448440186199";
google_ad_slot = "0511824612";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.anttna.com/archives/124.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>使用MobileTrack制作自己的基站数据库</title>
		<link>http://www.anttna.com/archives/90.html</link>
		<comments>http://www.anttna.com/archives/90.html#comments</comments>
		<pubDate>Mon, 02 Nov 2009 09:23:13 +0000</pubDate>
		<dc:creator>ant</dc:creator>
				<category><![CDATA[程序天空]]></category>
		<category><![CDATA[基站定位]]></category>
		<category><![CDATA[基站数据库]]></category>
		<category><![CDATA[GPS定位]]></category>
		<category><![CDATA[MobileTrack]]></category>
		<category><![CDATA[Wi-Fi定位]]></category>

		<guid isPermaLink="false">http://www.anttna.com/?p=90</guid>
		<description><![CDATA[MobileTrack v2.0支持基站,Wi-Fi,GPS综合定位，新增的历史记录查询可以将之前经过的基站和GPS信息全部保存下来。MobileTrack还支持轨迹KML导出功能。把这两个功能结合起来就可以制作自己的基站数据库。 以下面测试这段路程为例： 测试机型为D600+蓝牙GPS。全程100多公里，共搜集到21个基站，基站更新速度不太理想，这个原因有两个：1.和机型有关系，具体原因可以看这篇分析文章 http://www.anttna.com/archives/14.html 。2.中间经过的地方都是地广人稀的农村地区，基站密度和城市是有差距的。 一路上GPS的卫星信号特别好，除少数时候只搜到4颗星外，基本在7-10颗，最好时能搜到11颗。 回来后，把数据导出来，进行后期处理。就可以整理出一份基站数据表来了。 如果还想更进一步处理数据，比如想把基站数据表里gps数据转换成地理位置，可以使用本站的接口 http://www.anttna.com/gps2addr/index.php]]></description>
			<content:encoded><![CDATA[<p>MobileTrack v2.0支持基站,Wi-Fi,GPS综合定位，新增的历史记录查询可以将之前经过的基站和GPS信息全部保存下来。MobileTrack还支持轨迹KML导出功能。把这两个功能结合起来就可以制作自己的基站数据库。</p>
<p><span id="more-90"></span><br />
以下面测试这段路程为例：</p>
<p><a href="http://www.mymobiletrack.com/mobile/mytrack.php?uid=2&amp;do=showshare&amp;id=67" target="_blank"><img class="alignnone size-full wp-image-109" title="1" src="http://www.anttna.com/wp-content/uploads/2009/11/1.JPG" alt="1" width="589" height="351" /></a></p>
<p>测试机型为D600+蓝牙GPS。全程100多公里，共搜集到21个基站，基站更新速度不太理想，这个原因有两个：1.和机型有关系，具体原因可以看这篇分析文章 <a href="http://www.anttna.com/archives/14.html" target="_blank">http://www.anttna.com/archives/14.html</a> 。2.中间经过的地方都是地广人稀的农村地区，基站密度和城市是有差距的。<br />
一路上GPS的卫星信号特别好，除少数时候只搜到4颗星外，基本在7-10颗，最好时能搜到11颗。</p>
<p><img class="alignnone size-full wp-image-110" title="VidyaScreen033" src="http://www.anttna.com/wp-content/uploads/2009/11/VidyaScreen033.jpg" alt="VidyaScreen033" width="240" height="320" /></p>
<p><img class="alignnone size-full wp-image-111" title="VidyaScreen037" src="http://www.anttna.com/wp-content/uploads/2009/11/VidyaScreen037.jpg" alt="VidyaScreen037" width="240" height="320" /></p>
<p>回来后，把数据导出来，进行后期处理。就可以整理出一份基站数据表来了。</p>
<p><img class="alignnone size-full wp-image-112" title="VidyaScreen039" src="http://www.anttna.com/wp-content/uploads/2009/11/VidyaScreen039.jpg" alt="VidyaScreen039" width="240" height="320" /><br />
如果还想更进一步处理数据，比如想把基站数据表里gps数据转换成地理位置，可以使用本站的接口 <a title="GPS转地理位置" href="http://www.anttna.com/gps2addr/index.php" target="_blank">http://www.anttna.com/gps2addr/index.php</a></p>
<p><p><script type="text/javascript"><!--
google_ad_client = "pub-4525448440186199";
google_ad_slot = "0511824612";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.anttna.com/archives/90.html/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>MobileTrack for ppc v2.0 Beta 发布</title>
		<link>http://www.anttna.com/archives/70.html</link>
		<comments>http://www.anttna.com/archives/70.html#comments</comments>
		<pubDate>Thu, 29 Oct 2009 15:33:43 +0000</pubDate>
		<dc:creator>ant</dc:creator>
				<category><![CDATA[程序天空]]></category>
		<category><![CDATA[基站定位]]></category>
		<category><![CDATA[GPS定位]]></category>
		<category><![CDATA[MobileTrack]]></category>
		<category><![CDATA[MyMobileTrack]]></category>
		<category><![CDATA[Wi-Fi定位]]></category>

		<guid isPermaLink="false">http://www.anttna.com/?p=70</guid>
		<description><![CDATA[MobileTrack 是一款集GSM基站定位，Wi-Fi定位，GPS定位为一体的手机定位软件。 2.0在MobileTrack v1.0的基础上 * 增加Wi-Fi定位 * 增加GPS定位 * 增加定位记录查看功能 * 增加定位记录导出功能 软件下载: http://www.MyMobileTrack.com/mobile/download.php &#8212;&#8212;&#8212;&#8211; 软件截图]]></description>
			<content:encoded><![CDATA[<p>MobileTrack 是一款集GSM基站定位，Wi-Fi定位，GPS定位为一体的手机定位软件。<br />
2.0在MobileTrack v1.0的基础上</p>
<p>* 增加Wi-Fi定位<br />
* 增加GPS定位<br />
* 增加定位记录查看功能<br />
* 增加定位记录导出功能</p>
<p>软件下载: <a href="http://www.MyMobileTrack.com/mobile/download.php" target="_blank">http://www.MyMobileTrack.com/mobile/download.php</a></p>
<p>&#8212;&#8212;&#8212;&#8211;<br />
<span id="more-70"></span><br />
<p><script type="text/javascript"><!--
google_ad_client = "pub-4525448440186199";
google_ad_slot = "0511824612";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<br />
软件截图<br />

<a href='http://www.anttna.com/archives/70.html/attachment/1' title='1'><img width="150" height="150" src="http://www.anttna.com/wp-content/uploads/2009/10/1-150x150.jpg" class="attachment-thumbnail" alt="1" title="1" /></a>
<a href='http://www.anttna.com/archives/70.html/attachment/2' title='2'><img width="150" height="150" src="http://www.anttna.com/wp-content/uploads/2009/10/2-150x150.jpg" class="attachment-thumbnail" alt="2" title="2" /></a>
<a href='http://www.anttna.com/archives/70.html/attachment/3' title='3'><img width="150" height="150" src="http://www.anttna.com/wp-content/uploads/2009/10/3-150x150.jpg" class="attachment-thumbnail" alt="3" title="3" /></a>
<a href='http://www.anttna.com/archives/70.html/attachment/4' title='4'><img width="150" height="150" src="http://www.anttna.com/wp-content/uploads/2009/10/4-150x150.jpg" class="attachment-thumbnail" alt="4" title="4" /></a>
<a href='http://www.anttna.com/archives/70.html/attachment/5' title='5'><img width="150" height="150" src="http://www.anttna.com/wp-content/uploads/2009/10/5-150x150.jpg" class="attachment-thumbnail" alt="5" title="5" /></a>
<a href='http://www.anttna.com/archives/70.html/attachment/8' title='8'><img width="150" height="150" src="http://www.anttna.com/wp-content/uploads/2009/10/8-150x150.jpg" class="attachment-thumbnail" alt="8" title="8" /></a>
<a href='http://www.anttna.com/archives/70.html/attachment/9' title='9'><img width="150" height="150" src="http://www.anttna.com/wp-content/uploads/2009/10/9-150x150.jpg" class="attachment-thumbnail" alt="9" title="9" /></a>
<a href='http://www.anttna.com/archives/70.html/attachment/10' title='10'><img width="150" height="150" src="http://www.anttna.com/wp-content/uploads/2009/10/10-150x150.jpg" class="attachment-thumbnail" alt="10" title="10" /></a>
<a href='http://www.anttna.com/archives/70.html/attachment/11' title='11'><img width="150" height="150" src="http://www.anttna.com/wp-content/uploads/2009/10/11-150x150.jpg" class="attachment-thumbnail" alt="11" title="11" /></a>
</p>
<p><p><script type="text/javascript"><!--
google_ad_client = "pub-4525448440186199";
google_ad_slot = "0511824612";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.anttna.com/archives/70.html/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>

