微信开发 获取gps定位Gps如何定位

微信怎样查找好友位置 如何通过微信定位对方位置_科技_贵阳网
更多资讯就在贵阳头条
&&&&&&&&正文
微信怎样查找好友位置 如何通过微信定位对方位置
大家都知道微信有一个强大的定位功能就是可以查看到微信好友的位置,好友不接受位置共享,对方还不知道的情况,我们怎么定位微信好友的具体位置呢。下面小编介绍大家如何查找对方的位置,这样在聊天过程中就可以知道对方在什么地方啦。
卫星定位系统即全球定位系统。这个系统可以保证在任意时刻,以保证卫星可以采集到该观测点的经纬度和高度以便实现导航、定位、授时等功能。这项技术可以用来引导飞机、船舶、车辆、个人、准确地沿着选定的路线时时跟踪定位目的地具体位置。
定位技术有两种,一种是基于GPS的定位,一种是基于移动运营网的基站的定位。基于GPS的定位方式是利用手机上的GPS定位模块将自己的位置信号发送到定位后台来实现手机定位的。基站定位则是利用基站对手机的距离的测算距离来确定手机位置的。后者不需要手机具有GPS定位能力,但是精度很大程度依赖于基站的分布及覆盖范围的大小,前者定位精度较高。此外还有利用Wifi在小范围内定位方式。
如何通过微信定位好友位置:一,首先打开微信,然后在微信‘聊天’界面选择想要了解对方方位的聊天朋友,点击进入‘聊天界面’ 二,然后在聊天界面下方的输入文字地方,点击后面的“+”按钮,然后在弹出的更多操作菜单中选择“位置”,然后再选择“共享实时位置” 三,进入微信共享实时位置后,会自动进行地图定位,在地图中,我们即可找到自己与对方的大概位置了,用户还可以按住底部的“语音按钮”进行语音聊天。关于微信怎么看对方位置的方法就为大家介绍到这里,本方法适合对方开启共享定位后才适用。
责任编辑:刘瑾龙
由中国著名导演张弛执导,国家一级演员吴军领衔主演的电 ...3月2日下午,著名作家叶辛《古今海龙屯》新书发行暨作品 ...3月3日,记者从第20届贵州汽车文化节新闻发布会暨启动仪 ...1月15日,鸡蛋平均价格为每斤3.27元;2月6日每斤跌破3元 ...至3月3日下午,被火车压断双脚的7岁男孩小况,仍在遵医附...
昨日,在全国爱耳日前夕中国儿童少年基金会授予歌手平安 ...日前,华谊兄弟与工夫影业携手在京举办“想象力工业”主 ...本周末,由著名节目主持人董卿首次担当制作人的《朗读者 ...记者了解到,接下来还有不少都市题材作品打出“治愈牌” ...国内现场文化票务平台西十区网28日对外宣布将在国内市场 ...
2日上午,国家体育总局水上运动管理中心召开了东京奥运 ...国家体育总局排球运动管理中心主任李全强3日表示,中国 ...束昱辉称,今年夏天,权健还将引进一名与迭戈·科斯塔同 ...回顾2016赛季,江苏苏宁俱乐部在中超积分榜排名第二 ...资深国际级裁判、中国篮协裁判委员会副主任杨茂功28日 ...
小露香肩可以让你在人群中脱引而出,并且散发着女性独有 ...碎花裙的种类很多,有“乱花渐欲迷人眼”的缤纷碎花,也 ...少女时代组合成员泰妍3月24日韩国仁川机场街拍:身着Clau...最近总有小伙伴反馈说丰胸贫乳都穿不了露肩衣,编编觉得 ...近期街拍TOP单品当属金属色百褶裙,无论明星、时尚博主还...
2017中国国际大数据挖掘大赛征集令对象:全球与大数据相关的企业、团队、创客,大数据深度挖掘开发企业和团队。[]
卫视同步[]还没有帐号? 赶紧
用户版块帖子
想问下各位大神,GPS定位的软件谁有,就是微信显示我在任何地方的
UID:1581476
在线时间1595小时
M币735专家4
求这个软件了可以的话发到我邮箱69零零488零@qq.com现在好多都是被种了木马的求一个无木马,无限制的。我的手机是安卓4.2版本
UID:27743
在线时间158小时
M币1853专家1
用不着,微信自己就能调用gps数据,关键是你得打开定位,并且允许微信用它。
UID:810788
在线时间42小时
M币227专家2
谷歌地图就行
UID:1581476
在线时间1595小时
M币735专家4
回 bigrong 的帖子
:用不着,微信自己就能调用gps数据,关键是你得打开定位,并且允许微信用它。( 22:54)嬀/color]我不在美国想发朋友圈显示我在美国可以吗
UID:1581476
在线时间1595小时
M币735专家4
回 freshmen 的帖子
:谷歌地图就行( 22:55)嬀/color]装个谷歌地图就可以在微信作假了?就可以搜索“附近的人”,例如我定位是美国,就搜到美国妹子了?
UID:1465734
在线时间667小时
M币107专家5
你好像不是定位自己,是想模拟个假位置
UID:1207535
在线时间1672小时
M币7587专家15
楼上说的对还有,发错区了
热心人士!
UID:1581476
在线时间1595小时
M币735专家4
回 sitianshu 的帖子
:楼上说的对/apk/com.fakegps.mock还有,发错区了( 23:30)嬀/color]谢谢你啊我回家下载这个试试请问应该发到什么区??
访问内容超出本站范围,不能确定是否安全
如果您提交过一次失败了,可以用”恢复数据”来恢复帖子内容
您目前还是游客,请
&回复后跳转到最后一页
Code by , Time now is:03-05 03:35,
Gzip enabled&海马玩模拟器GPS定位设置 微信/陌陌定位教程
微信、陌陌均是经常需要定位的社交软件,如果用安卓模拟器登录要怎么开启GPS定位呢?不同于其他安卓模拟器需要单独安装伪GPS定位软件,海马玩安卓模拟器自带了GPS定位功能,下面跟下载吧小编一起来了解下。打开海马玩模拟器,然后点击左侧的【扳手】按钮,再点击定位图标,通过地图缩放定位到你要去的位置(暂不支持搜索),然后点击地图上的某个位置,弹出”选取改点为当前位置“对话框,点击【OK】按钮即可。直接打开微信、陌陌等软件就可以定位成功了。
如果本文对您有帮助请分享给您的好友,也可按Ctrl+D收藏本页面,谢谢!
评论列表(网友评论仅供网友表达个人看法,并不表明本站同意其观点或证实其描述)
怎么下载啊?
我怎么没找到扳手啊> 怎么使用附近的人功能 提
怎么使用附近的人功能 提高微信定位准确性(2)
&&&&&& 如图所示:
怎么使用附近的人功能 提高微信定位准确性
  5、 此时就会发现手机GPS定位模块正常启动并进行辅助定位操作了。
怎么使用附近的人功能 提高微信定位准确性
  6、最后就会发现所搜索之人基本上都是你周围的人啦。经过以上设置后,就会发现微信定位的准确度得到了明显的提高。
怎么使用附近的人功能 提高微信定位准确性
  7、另外,还需要说明一点,由于微信程序存在的Bug也可能导致定位不准确的情况的发生。对此,一种比较好的解决办法是下载或更新至最新版本的微信程序,这样对于提高定位的精准度也有一定的帮助。微信公共服务平台开发(.Net 的实现)10-------地理位置
微信公共平台中涉及到地理位置的有两种情况:
& & & &第一、我发送一个自选的地理位置给微信,然后微信可以自动反馈响应的信息。
& & & &第二、让微信获取我们GPS定位地址位置,反馈响应的信息。
& & & &首先我们先来看第一种,在微信中除了可以发文本,图片,语音等还有一个信息就是地理位置,按照微信接受地理信息的XML信息,我们需要改造一下之前的wxmessage类加上几个属性:
class wxmessage
public string FromUserName { }
public string ToUserName { }
public string MsgType { }
public string EventName { }
public string Content { }
public string Recognition { }
public string MediaId { }
public string EventKey { }
public string Location_X { }
public string Location_Y { }
public string Scale { }
public string Label { }
class wxmessage
public string FromUserName { }
public string ToUserName { }
public string MsgType { }
public string EventName { }
public string Content { }
public string Recognition { }
public string MediaId { }
public string EventKey { }
public string Location_X { }
public string Location_Y { }
public string Scale { }
public string Label { }
& & & &其中Location_X代表纬度,Location_Y代表经度,Scale代表缩放比例,Label代表位置的描述
& & & &和接受文本,语音消息一下样,地理信息的MsgType为&location&,修改一下之前的GetWxMessage()函数和OnLoad里面的消息处理:
private wxmessage GetWxMessage()
wxmessage wx = new wxmessage();
StreamReader str = new StreamReader(Request.InputStream, System.Text.Encoding.UTF8);
XmlDocument xml = new XmlDocument();
xml.Load(str);
wx.ToUserName = xml.SelectSingleNode(&xml&).SelectSingleNode(&ToUserName&).InnerT
wx.FromUserName = xml.SelectSingleNode(&xml&).SelectSingleNode(&FromUserName&).InnerT
wx.MsgType = xml.SelectSingleNode(&xml&).SelectSingleNode(&MsgType&).InnerT
if (wx.MsgType.Trim() == &text&)
wx.Content = xml.SelectSingleNode(&xml&).SelectSingleNode(&Content&).InnerT
if (wx.MsgType.Trim() == &location&)
wx.Location_X = xml.SelectSingleNode(&xml&).SelectSingleNode(&Location_X&).InnerT
wx.Location_Y = xml.SelectSingleNode(&xml&).SelectSingleNode(&Location_Y&).InnerT
wx.Scale = xml.SelectSingleNode(&xml&).SelectSingleNode(&Scale&).InnerT
wx.Label = xml.SelectSingleNode(&xml&).SelectSingleNode(&Label&).InnerT
if (wx.MsgType.Trim() == &event&)
wx.EventName = xml.SelectSingleNode(&xml&).SelectSingleNode(&Event&).InnerT
wx.EventKey = xml.SelectSingleNode(&xml&).SelectSingleNode(&EventKey&).InnerT
if (wx.MsgType.Trim() == &voice&)
wx.Recognition = xml.SelectSingleNode(&xml&).SelectSingleNode(&Recognition&).InnerT
private wxmessage GetWxMessage()
wxmessage wx = new wxmessage();
StreamReader str = new StreamReader(Request.InputStream, System.Text.Encoding.UTF8);
XmlDocument xml = new XmlDocument();
xml.Load(str);
wx.ToUserName = xml.SelectSingleNode(&xml&).SelectSingleNode(&ToUserName&).InnerT
wx.FromUserName = xml.SelectSingleNode(&xml&).SelectSingleNode(&FromUserName&).InnerT
wx.MsgType = xml.SelectSingleNode(&xml&).SelectSingleNode(&MsgType&).InnerT
if (wx.MsgType.Trim() == &text&)
wx.Content = xml.SelectSingleNode(&xml&).SelectSingleNode(&Content&).InnerT
if (wx.MsgType.Trim() == &location&)
wx.Location_X = xml.SelectSingleNode(&xml&).SelectSingleNode(&Location_X&).InnerT
wx.Location_Y = xml.SelectSingleNode(&xml&).SelectSingleNode(&Location_Y&).InnerT
wx.Scale = xml.SelectSingleNode(&xml&).SelectSingleNode(&Scale&).InnerT
wx.Label = xml.SelectSingleNode(&xml&).SelectSingleNode(&Label&).InnerT
if (wx.MsgType.Trim() == &event&)
wx.EventName = xml.SelectSingleNode(&xml&).SelectSingleNode(&Event&).InnerT
wx.EventKey = xml.SelectSingleNode(&xml&).SelectSingleNode(&EventKey&).InnerT
if (wx.MsgType.Trim() == &voice&)
wx.Recognition = xml.SelectSingleNode(&xml&).SelectSingleNode(&Recognition&).InnerT
protected void Page_Load(object sender, EventArgs e)
wxmessage wx = GetWxMessage();
string res = &&;
if (!string.IsNullOrEmpty(wx.EventName) && wx.EventName.Trim() == &subscribe&)
string content = &&;
if (!wx.EventKey.Contains(&qrscene_&))
content = &/:rose欢迎北京永杰友信科技有限公司/:rose\n直接回复&你好&&;
res = sendTextMessage(wx, content);
content = &二维码参数:\n& + wx.EventKey.Replace(&qrscene_&, &&);
res = sendTextMessage(wx, content);
else if (!string.IsNullOrEmpty(wx.EventName) && wx.EventName.ToLower() == &scan&)
string str = &二维码参数:\n& + wx.EventK
res = sendTextMessage(wx, str);
else if (!string.IsNullOrEmpty(wx.EventName) && wx.EventName.Trim() == &CLICK&)
if(wx.EventKey==&HELLO&)
res = sendTextMessage(wx, &你好,欢迎使用北京永杰友信科技有限公司公共微信平台!&);
WriteLog(wx.MsgType);
if (wx.MsgType == &text& && wx.Content == &你好&)
res = sendTextMessage(wx, &你好,欢迎使用北京永杰友信科技有限公司公共微信平台!&);
else if (wx.MsgType == &voice&)
res = sendTextMessage(wx, wx.Recognition);
else if (wx.MsgType == &location&)
res = sendTextMessage(wx, &您发送的位置是:& + wx.Label + &;纬度是:& + wx.Location_X + &;经度是:& + wx.Location_Y + &;缩放比例为:& + wx.Scale);
res = sendTextMessage(wx, &你好,未能识别消息!&);
Response.Write(res);
protected void Page_Load(object sender, EventArgs e)
wxmessage wx = GetWxMessage();
string res = &&;
if (!string.IsNullOrEmpty(wx.EventName) && wx.EventName.Trim() == &subscribe&)
string content = &&;
if (!wx.EventKey.Contains(&qrscene_&))
content = &/:rose欢迎北京永杰友信科技有限公司/:rose\n直接回复&你好&&;
res = sendTextMessage(wx, content);
content = &二维码参数:\n& + wx.EventKey.Replace(&qrscene_&, &&);
res = sendTextMessage(wx, content);
else if (!string.IsNullOrEmpty(wx.EventName) && wx.EventName.ToLower() == &scan&)
string str = &二维码参数:\n& + wx.EventK
res = sendTextMessage(wx, str);
else if (!string.IsNullOrEmpty(wx.EventName) && wx.EventName.Trim() == &CLICK&)
if(wx.EventKey==&HELLO&)
res = sendTextMessage(wx, &你好,欢迎使用北京永杰友信科技有限公司公共微信平台!&);
WriteLog(wx.MsgType);
if (wx.MsgType == &text& && wx.Content == &你好&)
res = sendTextMessage(wx, &你好,欢迎使用北京永杰友信科技有限公司公共微信平台!&);
else if (wx.MsgType == &voice&)
res = sendTextMessage(wx, wx.Recognition);
else if (wx.MsgType == &location&)
res = sendTextMessage(wx, &您发送的位置是:& + wx.Label + &;纬度是:& + wx.Location_X + &;经度是:& + wx.Location_Y + &;缩放比例为:& + wx.Scale);
res = sendTextMessage(wx, &你好,未能识别消息!&);
Response.Write(res);
& & & &这样当我们发送一个地理位置信息的时候就可以反馈响应的信息了。值得一提的是:这里的地理信息位置无需授权,因为自己发送的地理信息位置不一定是自己的真实位置,我们可以在输入界面进行任意选择,不会涉及隐私。
& & & &当然如果我们像制作类似于&我附近&的功能的时候,就必须有两个条件,在微信公共号中开启获取用户地理信息的功能。第二,用户自己在关注微信的时候允许微信公共号获取我的位置。这就需要用到我们在文章开始的时候给大家介绍的第二种情况了。按照微信的解释,当一个会话开始的时候(也就是说进入对话界面的时候),首先获取一下,然后每个五秒自动获取一次。也就是就是说获得用户位置信息的时候触发的不是&你一言我一语的对话&,而是一个特殊的事件,每格五秒出发一次。这里被定义为MsgType为&event&,而为了区别于其他的&event&,他的EventName(其实官方叫做event)为&LOCATION&(大写哦)。
& & & &下面我依然需要按照微信的格式修改我们的wxmessage类:
class wxmessage
public string FromUserName { }
public string ToUserName { }
public string MsgType { }
public string EventName { }
public string Content { }
public string Recognition { }
public string MediaId { }
public string EventKey { }
public string Location_X { }
public string Location_Y { }
public string Scale { }
public string Label { }
public string Latitude { }
public string Longitude { }
public string Precision { }
class wxmessage
public string FromUserName { }
public string ToUserName { }
public string MsgType { }
public string EventName { }
public string Content { }
public string Recognition { }
public string MediaId { }
public string EventKey { }
public string Location_X { }
public string Location_Y { }
public string Scale { }
public string Label { }
public string Latitude { }
public string Longitude { }
public string Precision { }
& & & &改造一下GetWxMessage()函数和OnLoad函数:
private wxmessage GetWxMessage()
wxmessage wx = new wxmessage();
StreamReader str = new StreamReader(Request.InputStream, System.Text.Encoding.UTF8);
XmlDocument xml = new XmlDocument();
xml.Load(str);
wx.ToUserName = xml.SelectSingleNode(&xml&).SelectSingleNode(&ToUserName&).InnerT
wx.FromUserName = xml.SelectSingleNode(&xml&).SelectSingleNode(&FromUserName&).InnerT
wx.MsgType = xml.SelectSingleNode(&xml&).SelectSingleNode(&MsgType&).InnerT
WriteLog(&MsgType:&+wx.MsgType);
if (wx.MsgType.Trim() == &event&)
wx.EventName = xml.SelectSingleNode(&xml&).SelectSingleNode(&Event&).InnerT
WriteLog(wx.EventName);
if (wx.EventName.ToUpper() == &LOCATION&)
wx.Latitude = xml.SelectSingleNode(&xml&).SelectSingleNode(&Latitude&).InnerT
wx.Longitude = xml.SelectSingleNode(&xml&).SelectSingleNode(&Longitude&).InnerT
wx.Precision = xml.SelectSingleNode(&xml&).SelectSingleNode(&Precision&).InnerT
wx.EventKey = xml.SelectSingleNode(&xml&).SelectSingleNode(&EventKey&).InnerT
if (wx.MsgType.Trim() == &text&)
wx.Content = xml.SelectSingleNode(&xml&).SelectSingleNode(&Content&).InnerT
if (wx.MsgType.Trim() == &location&)
wx.Location_X = xml.SelectSingleNode(&xml&).SelectSingleNode(&Location_X&).InnerT
wx.Location_Y = xml.SelectSingleNode(&xml&).SelectSingleNode(&Location_Y&).InnerT
wx.Scale = xml.SelectSingleNode(&xml&).SelectSingleNode(&Scale&).InnerT
wx.Label = xml.SelectSingleNode(&xml&).SelectSingleNode(&Label&).InnerT
if (wx.MsgType.Trim() == &voice&)
wx.Recognition = xml.SelectSingleNode(&xml&).SelectSingleNode(&Recognition&).InnerT
private wxmessage GetWxMessage()
wxmessage wx = new wxmessage();
StreamReader str = new StreamReader(Request.InputStream, System.Text.Encoding.UTF8);
XmlDocument xml = new XmlDocument();
xml.Load(str);
wx.ToUserName = xml.SelectSingleNode(&xml&).SelectSingleNode(&ToUserName&).InnerT
wx.FromUserName = xml.SelectSingleNode(&xml&).SelectSingleNode(&FromUserName&).InnerT
wx.MsgType = xml.SelectSingleNode(&xml&).SelectSingleNode(&MsgType&).InnerT
WriteLog(&MsgType:&+wx.MsgType);
if (wx.MsgType.Trim() == &event&)
wx.EventName = xml.SelectSingleNode(&xml&).SelectSingleNode(&Event&).InnerT
WriteLog(wx.EventName);
if (wx.EventName.ToUpper() == &LOCATION&)
wx.Latitude = xml.SelectSingleNode(&xml&).SelectSingleNode(&Latitude&).InnerT
wx.Longitude = xml.SelectSingleNode(&xml&).SelectSingleNode(&Longitude&).InnerT
wx.Precision = xml.SelectSingleNode(&xml&).SelectSingleNode(&Precision&).InnerT
wx.EventKey = xml.SelectSingleNode(&xml&).SelectSingleNode(&EventKey&).InnerT
if (wx.MsgType.Trim() == &text&)
wx.Content = xml.SelectSingleNode(&xml&).SelectSingleNode(&Content&).InnerT
if (wx.MsgType.Trim() == &location&)
wx.Location_X = xml.SelectSingleNode(&xml&).SelectSingleNode(&Location_X&).InnerT
wx.Location_Y = xml.SelectSingleNode(&xml&).SelectSingleNode(&Location_Y&).InnerT
wx.Scale = xml.SelectSingleNode(&xml&).SelectSingleNode(&Scale&).InnerT
wx.Label = xml.SelectSingleNode(&xml&).SelectSingleNode(&Label&).InnerT
if (wx.MsgType.Trim() == &voice&)
wx.Recognition = xml.SelectSingleNode(&xml&).SelectSingleNode(&Recognition&).InnerT
& & & &当MsgType为event的时候我们之前用到的是菜单的事件,现在我们需要加入其EventName为&LOCATION&的代码段,因为现在还没有涉及其他的event我后面就用else好了,后面我会把代码写的规范些。在这里分别给新增的三个属性赋值,然后修改一下Onload函数
protected void Page_Load(object sender, EventArgs e)
wxmessage wx = GetWxMessage();
string res = &&;
if (!string.IsNullOrEmpty(wx.EventName) && wx.EventName.Trim() == &subscribe&)
string content = &&;
if (!wx.EventKey.Contains(&qrscene_&))
content = &/:rose欢迎北京永杰友信科技有限公司/:rose\n直接回复&你好&&;
res = sendTextMessage(wx, content);
content = &二维码参数:\n& + wx.EventKey.Replace(&qrscene_&, &&);
res = sendTextMessage(wx, content);
else if (!string.IsNullOrEmpty(wx.EventName) && wx.EventName.ToLower() == &scan&)
string str = &二维码参数:\n& + wx.EventK
res = sendTextMessage(wx, str);
else if (!string.IsNullOrEmpty(wx.EventName) && wx.EventName.Trim() == &CLICK&)
if(wx.EventKey==&HELLO&)
res = sendTextMessage(wx, &你好,欢迎使用北京永杰友信科技有限公司公共微信平台!&);
else if (!string.IsNullOrEmpty(wx.EventName) && wx.EventName.Trim() == &LOCATION&)
res = sendTextMessage(wx, &您的位置是经度:& + wx.Latitude + &,维度是:& + wx.Longitude+&,地理经度为:&+wx.Precision);
if (wx.MsgType == &text& && wx.Content == &你好&)
res = sendTextMessage(wx, &你好,欢迎使用北京永杰友信科技有限公司公共微信平台!&);
else if (wx.MsgType == &voice&)
res = sendTextMessage(wx, wx.Recognition);
else if (wx.MsgType == &location&)
res = sendTextMessage(wx, &您发送的位置是:& + wx.Label + &;纬度是:& + wx.Location_X + &;经度是:& + wx.Location_Y + &;缩放比例为:& + wx.Scale);
res = sendTextMessage(wx, &你好,未能识别消息!&);
Response.Write(res);
protected void Page_Load(object sender, EventArgs e)
wxmessage wx = GetWxMessage();
string res = &&;
if (!string.IsNullOrEmpty(wx.EventName) && wx.EventName.Trim() == &subscribe&)
string content = &&;
if (!wx.EventKey.Contains(&qrscene_&))
content = &/:rose欢迎北京永杰友信科技有限公司/:rose\n直接回复&你好&&;
res = sendTextMessage(wx, content);
content = &二维码参数:\n& + wx.EventKey.Replace(&qrscene_&, &&);
res = sendTextMessage(wx, content);
else if (!string.IsNullOrEmpty(wx.EventName) && wx.EventName.ToLower() == &scan&)
string str = &二维码参数:\n& + wx.EventK
res = sendTextMessage(wx, str);
else if (!string.IsNullOrEmpty(wx.EventName) && wx.EventName.Trim() == &CLICK&)
if(wx.EventKey==&HELLO&)
res = sendTextMessage(wx, &你好,欢迎使用北京永杰友信科技有限公司公共微信平台!&);
else if (!string.IsNullOrEmpty(wx.EventName) && wx.EventName.Trim() == &LOCATION&)
res = sendTextMessage(wx, &您的位置是经度:& + wx.Latitude + &,维度是:& + wx.Longitude+&,地理经度为:&+wx.Precision);
if (wx.MsgType == &text& && wx.Content == &你好&)
res = sendTextMessage(wx, &你好,欢迎使用北京永杰友信科技有限公司公共微信平台!&);
else if (wx.MsgType == &voice&)
res = sendTextMessage(wx, wx.Recognition);
else if (wx.MsgType == &location&)
res = sendTextMessage(wx, &您发送的位置是:& + wx.Label + &;纬度是:& + wx.Location_X + &;经度是:& + wx.Location_Y + &;缩放比例为:& + wx.Scale);
res = sendTextMessage(wx, &你好,未能识别消息!&);
Response.Write(res);
& & & &好了,完成,这样当你开启你的微信&获得用户位置信息&的时候微信平台会提醒你,是仅进入会话第一次获取,还是每个5秒获取一次,如果你选择了后者,你就会看到,每5秒会反馈给你一个地理位置的信息。
& & & &这里面需要非常注意的是:我按照这样认为没有问题了,但是怎么也获得不了信息,那是因为我在进入会话的时候,你会看到你的手机GPS在搜索,在GPS定位以前,是不会看到内容的。可以这样理解,当你GPS搜索定位后,才会触发获得用户位置信息的事件,这一点并不是我想象的通过基站定位也可以获得大致的位置,这一点需要开发者注意,我就是弄了半天,等我出门儿,手机定位了无意间看到了回复,这才恍然大悟。
& & & &说到这里可以各位会问只知道经纬度坐标有什么用?又不是具体位置。其实不然,我们可以使用多种方法知道位置详细的信息,例如我们可以通过BaiduMap API的地址反向解析指导这个坐标在那个城市,那个街道等内容,甚至可以知道附近的情况,这里就不再多说了,以后有机会和大家一起来谈谈BaiduMap
(window.slotbydup=window.slotbydup || []).push({
id: '2467140',
container: s,
size: '1000,90',
display: 'inlay-fix'
(window.slotbydup=window.slotbydup || []).push({
id: '2467141',
container: s,
size: '1000,90',
display: 'inlay-fix'
(window.slotbydup=window.slotbydup || []).push({
id: '2467142',
container: s,
size: '1000,90',
display: 'inlay-fix'
(window.slotbydup=window.slotbydup || []).push({
id: '2467143',
container: s,
size: '1000,90',
display: 'inlay-fix'
(window.slotbydup=window.slotbydup || []).push({
id: '2467148',
container: s,
size: '1000,90',
display: 'inlay-fix'}

我要回帖

更多关于 微信gps定位 的文章

更多推荐

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

点击添加站长微信