且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

当与原生iPhone / Android应用程序打开谷歌地图的链接会产生轻微移动标记

更新时间:2023-01-01 17:13:02

(q = .....) 谷歌地图的位置,在它返回它认为是最接近人类的地址位置的(有点讨厌我认为) 的,你可以通过你想要的地图的中心是一个纬度经度位置。例如:

Instead of questioning (q=.....) google maps for the location, in which it returns what it thinks is the nearest human address to the location (somewhat annoying I think) you can pass a lat lng location where you want the center of the map to be. For example:

http://maps.google.co.uk/?ll=53.385517 ,-1.865315

而不是:

http://maps.google.co.uk/?q=53.385517 ,-1.865315

我有这个问题我自己,和我的Andr​​oid设备至少这个工程。第二个例子仅仅把路线在地图上,首先是在摩尔的地图应用设备上的中间位置。

I had this problem my self, and on my Android device at least this works. The second example simply puts the map on a road, the first is in the middle of the moors on the device in the maps app.

从评论中的完整链接:

http://maps.google.com/maps?ll=53.385517,-1.865315&q=loc:53.385517,-1.865315&t=m

这一次似乎在增加一个标记为标准的地图应用,同时还加入了标记的工作。

This one seems to work at adding a marker for the standard maps app whilst still adding a marker.

接收最近回答一个古老的Andr​​oid版谷歌地图的问题,我有以后,我发现另一种解决方案这个问题,我认为可能对他人有用的。 Original问题 - 和信贷 队长Charmi 的指着我的方向

After receiving a recent answer to an old Android Google Maps question I had, I have found another solution to this question, which I thought would be useful for others. Original Question - and credit to Captain Charmi for pointing me in the direction.

,而不是使用上述这将在给定位置创建一个标记的链接的,麻烦的是,制造商是pretty无意义的,只是坐标。如果使用下面的链接,你可以添加无论是标题标记和显示的坐标:

Instead of using the link above which will create a marker at the given location, trouble is, the maker is pretty meaningless, just the coordinates. If you use the following link, you can add either a title to the marker and show the coordinates:

http://maps.google。 COM /图q = 53.385517,-1.865315 +(我的位置随机)

或者你也可以代替添加标题,您可以提供文本去标记内:

Or you can instead of adding a title, you can supply text to go inside the marker:

在彩虹的尽头@ 53.385517金http://maps.google.com/maps?q=A锅,-1.865315

正如你可以看到,谷歌现在滴在正确的位置标记供给为标志的信息因。我希望这有助于。

As you can see, Google now drops the marker in the correct place due to being supplied the info for the marker. I hope this helps.