TL;DR

To find Place ID, Google ID, and CID, you need to understand three Google Maps identifiers:

地点标识 is the unique ID Google gives to a location in Google Maps.

谷歌ID, also called Feature ID 或者 Data ID, is another unique ID used for places and other items across Google services.

CID is a unique business ID used across Google services like Google Maps, Ads, Shopping, and Analytics.

您可以使用 Outscraper to search by Place ID or Google ID and find the exact Google Maps business or location. You can also get the CID from a Google ID by converting part of the Google ID from hexadecimal to decimal.

Keep in mind that Place IDs and Google IDs can change over time, so it is best to refresh them if they are older than 12 months.

目录

地点标识

什么是场所标识?

因此,为了 谷歌的文件场所ID是谷歌数据库中谷歌地图上一个场所的唯一标识。在对谷歌地图API的请求中接受地方ID。

地点标识的例子: ChIJgUbEo8cfqokR5lP9_Wh_DaM.

虽然地方ID是唯一识别一个地方的、 谷歌推荐 如果地方ID超过12个月,就会被刷新。这意味着你的地点ID在12个月后可能会过时,而同一地点在这段时间内可能有另一个地点ID。

在Outscraper中使用地点标识

你可以使用地方ID作为查询,以确定独特的地方,并在 Outscraper平台, Outscraper API,或 Outscraper SDKs.

在谷歌地图上通过地方ID打开一个地方

 句法 用Place ID打开谷歌地图的结构如下,其中 ChIJgUbEo8cfqokR5lP9_Wh_DaM 是你的地点ID:

				
					https://google.com/maps/place/?q=place_id:ChIJgUbEo8cfqokR5lP9_Wh_DaM
				
			

特征ID(A.K.A. Google ID,数据ID)。

什么是特征ID?

功能ID是谷歌上项目或功能的唯一标识符(搜索、地图、酒店等)。

特征ID的例子: 0x89aa1fc7a3c44681:0xa30d7f68fdfd53e6.

特征ID可用于识别谷歌地图上的地方,但与地方ID一样,它们在12个月内可能会过时。

在Outscraper中使用功能ID(谷歌ID)。

与地点ID相同,你可以使用特征ID作为查询,以确定独特的地点,并有 Outscraper平台, Outscraper API,或 Outscraper SDKs.

通过特征ID(谷歌ID)在谷歌地图上打开一个地方

为了按特征ID打开一个地方,你将需要创建以下URL,其中 0x89aa1fc7a3c44681:0xa30d7f68fdfd53e6 是你的特征ID:

				
					https://www.google.com/maps/place/data=!3m1!4b1!4m5!3m4!1s0x89aa1fc7a3c44681:0xa30d7f68fdfd53e6!8m2!3d40!4d90
				
			

从特征ID中提取CID

通过一些编码,可以从特征ID中获得CID。在我们的Python例子中,我们将从特征ID的左边部分,并将该十六进制值转换为十进制。

				
					feature_id = '0x89aa1fc7a3c44681:0xa30d7f68fdfd53e6'
cid_hexadecimal = feature_id.split(':')[-1]
cid = str(int(cid_hexadecimal, 16))
				
			

CID

什么是CID?

CID(客户识别码)是一个企业在谷歌上的唯一标识。它用于在所有谷歌服务(广告、商店、分析、地图等)中识别一个企业账户。

CID的例子: 10547968956387762884.

常见问题

最常见的问题和答案

因此,为了 谷歌的文件场所ID是谷歌数据库中谷歌地图上一个场所的唯一标识。在对谷歌地图API的请求中接受地方ID。

谷歌ID是谷歌上项目或功能(搜索、地图、酒店等)的唯一标识。

CID(客户识别码)是一个企业在谷歌上的唯一标识。它用于在所有谷歌服务(广告、商店、分析、地图等)中识别一个企业账户。

你可以从Outscraper(place_id)的结果中找到地方ID。或者,你可以在通过浏览器访问谷歌地图的地方时,在页面源中找到地方ID。


弗拉德

项目经理 领英

0 评论

发表评论

头像占位符