GooglePlacesAPI不再显示author_name和profile_photo_url

时间:2018-09-05 01:41:50

标签: javascript google-places-api

我使用GooglePlacesAPI和jQuery输出基于Google Place ID的企业的Google评论。两个变量不再输出数据。

author_name不再输出用户名,所有评论显示用户名均来自“ A Google User”

profile_photo_url不再输出用户照片,它返回空白。

author_nameprofile_photo_url都记录在Google地方详情(https://developers.google.com/places/web-service/details

评论主体和星星仍然正确输出。

还有另一种方法来调用此数据吗?

编辑:此问题是由于Google Places API中的错误已修复。

2 个答案:

答案 0 :(得分:1)

这已被Google确认为Google广告客户社区中的错误。请参阅我对相关问题的回复: Google Place API author_name Anonymous Problem

答案 1 :(得分:0)

当有memcpy时...例如示例中的一个:

https://www.google.com/maps/contrib/106422854611155436041/reviews

然后可以将其转换为ID为//Initial pointer to array.. float bytes2[] = {39, 77, 111, 111, 102, 33, 39, 0}; float* uint8Pointer2 = &bytes[2]; memcpy(uint8Pointer2, &bytes2[0], bytes2.size() * sizeof(float)); //Shallow/Shadowing Pointer... float* uint8Pointer = uint8Pointer2; float bytes[] = {391, 771, 1111, 1111, 1012, 331, 319, 10}; memcpy(uint8Pointer, &bytes[0], bytes.size() * sizeof(float)); //Pointer to pointer.. float** uint8Pointer1 = &uint8Pointer; //Bad.. uint8Pointer1 and &uint8Pointer is the same damn thing (same memory address).. //See the line above (float** uint8Pointer1 = &uint8Pointer).. memcpy(uint8Pointer1, &uint8Pointer, 8 * sizeof(uint8Pointer)); //The memcpy is unnecessary because it already pointers to the same location.. plus it's also wrong lol. 的G +个人资料:

https://plus.google.com/106422854611155436041

...,可以通过People API进行解析(需要登录)。