1

我在 Google Places API 中遇到数据丢失问题!如下例所示,Google Place 附加信息(例如手机号码、备用电话、传真电话)显示在 Google Map 搜索结果中,但不是通过 Google Places API 显示的!

在此链接之后,您会注意到添加的备用电话号码 mobile:

www.google.com/maps/place?cid=4256683212236351718&q=hamza+kamaleddine+home&hl=en&ved=0CBQQ-gswAA&sa=X&ei=cO4wT4arE8Wp8QOZqITuDA

但是使用 Google Places API(使用下面的 HTTP 请求),我正在检索以下 Json 对象:

地点搜索请求: https ://maps.googleapis.com/maps/api/place/search/json?location=33.8113420,35.619370&radius=500&name=hamza&sensor=false&key=AIzaSyBmT2NaNDJqSmZceuXD-pUrtDyHsC8kcz4

The Place Details Request: https://maps.googleapis.com/maps/api/place/details/json?reference=CnRvAAAAbkRqsybX6Gvpr-nqkIYi1QJKegY900fj6dSPzPUST9RJBX_YZ9wlY3_sY27J1u31Et42bQVYgkTzR9FNW9PwhdfXOcWBE7J8AWFGNAX0CRK-WVh0bsReKMcNjKUHQ7nTvgrq9PUKJrQdJWNHSyQgHxIQe_tRjNX5NPBcbdN03NjgPBoUOGcFXglRkNVmm73z8WpFOErLT1s&sensor=false&key=AIzaSyBmT2NaNDJqSmZceuXD-pUrtDyHsC8kcz4

地点详细信息响应 (JSON):

{ 
   "html_attributions" : [], 
   "result" : { 
      "address_components" : [ 
         { 
            "long_name" : "Aley", 
            "short_name" : "Aley", 
            "types" : [ "locality", "political" ] 
         }, 
         { 
            "long_name" : "LB", 
            "short_name" : "LB", 
            "types" : [ "country", "political" ] 
         }, 
         { 
            "long_name" : "1000", 
            "short_name" : "1000", 
            "types" : [ "postal_code" ] 
         } 
      ], 
      "formatted_address" : "Ain Al Jdide Road, طريق عين الجديدة, Aley, Lebanon", 
      "formatted_phone_number" : "70 975 590", 
      "geometry" : { 
         "location" : { 
            "lat" : 33.8113420, 
            "lng" : 35.619370 
         } 
      }, 
      "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png", 
      "id" : "a1063b63d187a576cf420e459aca9141e46bb8b6", 
      "international_phone_number" : "+961 70 975 590", 
      "name" : "Hamza Kamaleddine - Home", 
      "reference" : "...", 
      "types" : [ "establishment" ], 
      "url" : "http://maps.google.com/maps/place?cid=4256683212236351718", 
      "vicinity" : "Ain Al Jdide Road, طريق عين الجديدة, Aley", 
      "website" : "http://lb.linkedin.com/in/hkamaleddine" 
   }, 
   "status" : "OK" 

} 

如您所见,缺少手机号码、备用号码和传真号码!

请问如何解决这个问题?

非常感谢!

4

1 回答 1

0

Google Places API 当前不支持此功能。

在 Places API 问题跟踪器中有一个功能请求: http ://code.google.com/p/gmaps-api-issues/issues/detail?id=3905

请单击“星号”图标以获取有关未来更改的通知,并让我们知道您有兴趣看到它得到解决。

干杯

克里斯

于 2012-03-05T03:18:23.527 回答