Google Places API 中的数据丢失问题
我在 Google Places API 中遇到数据丢失问题!如下例所示,Google Place 的附加信息(如手机号码、备用电话、传真电话)显示在 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 对象:
详情 要求: <一href="https://maps.googleapis.com/maps/api/place/details/json?reference=CnRvAAAAbkRqsyb X6Gvpr-nqkIYi1QJKegY900fj6dSPzPUST9RJBX_YZ9wlY3_sY27J1u31Et42bQVYgkTzR9FNW9PwhdfXOcWBE7 J8AWFGNAX0CRK-WVh0bsReKMcNjKUHQ7nTvgrq9PUKJrQdJWNHSyQgHxIQe_tRjNX5NPBcbdN03NjgPBoUOGcFX glRkNVmm73z8WpFOErLT1s&传感器=假&键=AIzaSyBmT2NaNDJqSmZceuXD-pUrtDyHsC8kcz4" rel="nofollow">https://maps.googleapis.com/maps/api/place/details/json?reference=CnRvAAAAb kRqsybX6Gvpr-nqkIYi1QJKegY900fj6dSPzPUST9RJBX_YZ9wlY3_sY27J1u31Et42bQVYgkTzR9FNW9PwhdfXOCW BE7J8AWFGNAX0CRK-WVh0bsReKMcNjKUHQ7nTvgrq9PUKJrQdJWNHSyQgHxIQe_tRjNX5NPBcbdN03NjgPBouOGcFX glRkNVmm73z8WpFOErLT1s&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"
}
如您所见,手机号码、备用号码和传真号码丢失了!
请问这个问题如何解决?
非常感谢!
I'm having a missing data problem in Google Places API! As seen in the example below, the Google Place additional info like mobile number, alternate phone, fax phone, are shown in the Google Map search results, but not through the Google Places API!
Following this link, you could notice the added alternate phone number,
mobile:
www.google.com/maps/place?cid=4256683212236351718&q=hamza+kamaleddine+home&hl=en&ved=0CBQQ-gswAA&sa=X&ei=cO4wT4arE8Wp8QOZqITuDA
But using the Google Places API (using the HTTP request below), I am retrieving the following Json object:
The Place Search Request:
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 Response (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"
}
As you can notice, the mobile number, alternate, and fax numbers are missing!
How to solve this issue please?
Much Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Google Places API 目前不支持此功能。
Places API 问题跟踪器中有一个对此的功能请求:
http://code.google.com/p/gmaps -api-issues/issues/detail?id=3905
请点击“星号”图标以获取有关未来更改的通知,并让我们知道您有兴趣看到问题得到解决。
干杯
克里斯
The Google Places API does not currently support this feature.
There is a feature request for this in the Places API issue tracker here:
http://code.google.com/p/gmaps-api-issues/issues/detail?id=3905
Please click the 'star' icon to be notified of future changes, and to let us know you are interested in seeing it resolved.
Cheers
Chris