Google Places API中缺少数据问题

时间:2012-02-17 08:48:17

标签: google-maps google-maps-api-3 google-places-api google-places

我在Google Places API中遇到数据丢失问题!如下面的示例所示,Google地方搜索结果中显示的是谷歌广告附加信息,如手机号码,备用电话,传真电话,但不是通过Google Places API!

点击此链接后,您会注意到添加的备用电话号码, 移动:

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

地方详情要求: 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" 

} 

您可以注意到,手机号码,备用号码和传真号码丢失了!

请问如何解决这个问题?

非常感谢!

1 个答案:

答案 0 :(得分:0)

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

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

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

干杯

克里斯