在Google Maps API中使用Google Maps网址中的功能ID [英] Use Feature ID from Google Maps url in Google Maps API

查看:80
本文介绍了在Google Maps API中使用Google Maps网址中的功能ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果从地图本身或下拉菜单中选择了 Google地图上的地点在搜索中,在Google Maps上,URL如下所示:

If a place is selected on Google Maps, either from the map itself or from the dropdown in a search, on Google Maps, the url looks like this:

https://www.google.com/maps/place/Starbucks/@55.6767263,12.5666291,17z/data=!3m1!4b1!4m2!3m1!1s0x4652530e00cbee81:0x5e1ce2a9639f9705

在阅读此博客文章后,了解有关网址参数的信息, /data部分包含广泛的信息,其中包括所选位置的功能ID.在网址示例中,为0x4652530e00cbee81:0x5e1ce2a9639f9705.

After reading this blog article about the URL parameters, the /data part contains a wide range of information, among them is the Feature ID of the selected place. From the url example it's 0x4652530e00cbee81:0x5e1ce2a9639f9705.

我可以这样在Google Mapmaker上查找功能ID:

I can look up the Feature ID on Google Mapmaker like this:

http://www.google.com/mapmaker?gw=39&fid=0x4652530e00cbee81:0x5e1ce2a9639f9705

它在那里显示位置没有问题.

There it displays the location with no problem.

是否还可以在Google Maps API中使用功能ID并显示位置?

Is it possible to also use the Feature ID in Google Maps API and display the location?

推荐答案

我不认为您可以使用功能ID在Google Maps API中显示位置.基于 Data.Feature 类,似乎更多用于样式和数据层.

I don't believe you can use Feature ID to display locations in Google Maps API. Based on the Data.Feature class, it seems to be more used for styling and data layers.

这篇关于在Google Maps API中使用Google Maps网址中的功能ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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