Google Places Photos .GetUrl is adding width and height to url

房东的猫 提交于 2019-12-02 01:15:02

it seems like every API Key generates different path for example you got w100-h100-p and i got w200-p and the good news that this section whatever it is...is fixed so you can replace it with another string which is p

var str = place.photos[0].getUrl();
var res = str.replace(""w100-h100-p", "p");

or you can delete the w100-h100-

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!