Google地方信息评论-profile_photo_url字段不起作用

时间:2019-06-12 21:04:59

标签: google-maps google-places-api

是否可以显示评论者关于他在Android中访问过的位置的个人资料照片?

我是说我可以根据 profile_photo_url 字段获得有效的Http URL吗?

如果您尝试在浏览器中从profile_photo_url粘贴该URL,则会收到HTTP 404响应。

是否有一种API可以将以下URL转换为有效的URL,或者它如何工作?

{
  "author_name": "Bogdan Rusu",
  "author_url": "https:\/\/www.google.com\/maps\/contrib\/108255483707161638432\/reviews",
  "language": "en",
  "profile_photo_url": "https:\/\/lh6.googleusercontent.com\/-dQ5fh34ouJk\/AAAAAAAAAAI\/AAAAAAAAAAA\/ACHi3rf_188gKXMwcBh9oJI9HSzYX8Ratg\/s128-c0x00000000-cc-rp-mo-ba4\/photo.jpg",
  "rating": 5,
  "relative_time_description": "2 months ago",
  "text": "A very beautiful monastery with a lot of history and old age. It is currently underway, or the rendition of the monasteries. I recommend the surroundings.",
  "time": 1553956652
}

1 个答案:

答案 0 :(得分:1)

从网址中删除所有\

原始:

https:\/\/lh6.googleusercontent.com\/-dQ5fh34ouJk\/AAAAAAAAAAI\/AAAAAAAAAAA\/ACHi3rf_188gKXMwcBh9oJI9HSzYX8Ratg\/s128-c0x00000000-cc-rp-mo-ba4\/photo.jpg

working

https://lh6.googleusercontent.com/-dQ5fh34ouJk/AAAAAAAAAAI/AAAAAAAAAAA/ACHi3rf_188gKXMwcBh9oJI9HSzYX8Ratg/s128-c0x00000000-cc-rp-mo-ba4/photo.jpg