English 中文(简体)
• 如何在谷歌地方获得酸cid?
原标题:How to get the cid in the Google Place URL?

我想向google地区(并非是APIC)发出一项请求,我不需要在XML或JSON中获取数据,而只是想获得该网页并将其展示给用户。

http://maps.google.com/maps/place?cid=2124238351431937390“rel=“nofollow”http://maps.google.com/maps/place?cid=2124238351431937390。 但是,我不知道如何获得这种“酸”,这似乎对企业来说是一种独特的id。 我从山角一带获得样本回复,但发现,与任何回复领域一样,这种照相。

Does anyone know how can I get this "cid"?

Thanks Nishant

最佳回答

Here s how to get the cid of a place. Put your own API key and name of the restaurant that you want to find the cid).

<Step1:Cal Places Request AP some such as this

https://maps.googleapis.com/maps/api/place/search/json?
    location=47.6757453,-122.3149514&
    radius=500&
    types=food&
    name=Pies&
    sensor=false&
    key=AIzaSyZZZZZZZZZZZZ

These urls为一行。 它们分为多个线,便于阅读。

注<代码> 姓名/代码>参数是指我想要获得的称为“Pies and Pints”的餐馆;lng是同一地点的信息。

答复中将包含一个“参考”的关键,每个地方都是独特的。

Step2:从上调“参引”价值,并打上“地址”细节,例如:

https://maps.googleapis.com/maps/api/place/details/json?
    reference=CnRiAAAATIbN_GasBkBS6xLoO_HzR7owHvGaDXbG5QIbLf7eSZtIc4ZpvbBPxhVPEKZs5c4ptqxeKNVLCXZEoSOwLMn9nqkRc6khFuJFPh5jy-hjrh3Xr7X75w3-TIoTl3E-dKiZ2LcHuReWKZxydI75vH6zyRIQxfoiOKfFjo_1O-hnnllafxoU9tU_HoZos8C5uWextAk08RMukCY&
    sensor=true&
    key=AIzaSyBnI5DyG7ZZZZZZZZZZZZ

对照本年度的回复,关键“温度”包含“酸”。


磋商会提供文件,以更多地了解其预报结果。

问题回答

它认为,URL不再包含合作与发展司,而是加戈格尔联系。

要想在谷歌地图上看到分光灯,你只是通过电离层参数的URL值。 这将使你获得特定地点的URL,并找到合作署。

"url": "https://maps.google.com/?cid=12XXXXXXXXXXXXXXX"




相关问题
How to decide the current point reach on google map?

How to decide the current point reach on google map? I have a list of points (pickup points) of a route that I want to show in my google map with polyline. Now i have to get the current location of ...

Topographical or relief data in Map APIs

I was wondering if anyone knew of any map APIs that offer topographical or relief data? I ve had a quick look at Google and Bing APIs, but could find nothing there. Google allow you to view a map as ...

Using maps on Windows Mobile

I m experimenting with maps on different mobile platforms. Getting Google Maps to work on Android was easy, following this tutorial. Getting the same to work on Windows Mobile is a different matter. ...

Adding a custom icon to a google map

I need a hand adding a custom icon to some Google Maps javascript. Code below for your reference: function populateMap() { var map = new GMap2(document.getElementById("map")); map.setCenter(new ...

RSS to KML Overlay

I m want to display my blog as a Google Map overlay (each post contains geotags). How can I dynamically create a KML overlay from an RSS? Or better, how can I create a loop (PHP) that would display ...

开放街道地图管理员

我需要开放Street的标记管理员。 地图,如山角地图。

热门标签