如何通过手机短信发送给谷歌地图的位置信息为纽带 [英] How to send google maps location info through SMS as a link

查看:282
本文介绍了如何通过手机短信发送给谷歌地图的位置信息为纽带的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我要建一个应用程序,

In an application that I'm building,

我想送我的位置信息(纬度,长/ GEO coded)到我的紧急联络人列表。

I am trying to send my location info(Lat,Long/ Geocoded) to my emergency contact list.

我假设我所有收件人使用的是智能手机(安卓/ iOS的)

I am assuming that all my recipients are using smartphones(Android/iOS)

到现在为止,该应用程序发送我的位置信息作为一个字符串通过手机短信:

Until now, the application sends my location info as a string through SMS:

"I am at: " + Some Geocoded Location

不过,我认为这是不发送的精确位置信息的最佳途径。

However, I thought that this is not an optimal way of sending the exact location info.

所以,我在想,如果有可能产生通过与谷歌地图API

So, I was thinking if it was possible to generate a map through Google Maps API with a

针尖/点就可以了,并发送一个链接到该地图。

pinpoint/dot on it, and send a link to that map.

这个问题能在设备级别进行(不接触任何服务器)

Can this be done in Device level(Without contacting any servers)

或者,是否可以通过我自己的地图网站呢?

Or, can this be done by making my own map website?

或者,这根本不可能?

我想AP preciate更好的办法和建议,以及

I'd appreciate better approaches and suggestions as well.

感谢你在前进

推荐答案

示例 - :

http://maps.google.com/?q=<lat>,<lng>

其中lat-纬度, lng-经度

where lat- latitude, lng- longitude

如果接收短信上面的链接设备是下列之一:

If the device that receives the sms with the above link is one of following :

  • 智能手机(说Android的),那么它会显示地图的应用程序在启动设备上的意向名单上的上述共享URL点击时。
  • 如果不是(简单的电话)的链接将重定向到浏览器maps.google.com的展示与销点的位置。

这篇关于如何通过手机短信发送给谷歌地图的位置信息为纽带的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆