google maps - Photos getUrl 403 Forbidden -
i'm using javascript v3 api, , using this method display place photos(using geturl() function). photos coming fine, come image minus sign, , when check browser console, see requests return 403 forbidden. don't think usage issue(there no issues in google api console, , issues on same images same places). issue geturl() function not finding image? have other ideas? thanks!
edit: here's 1 showing warning icon right now, , code place id if notices anything:
function placedetailscallback(place, status) { if (status == google.maps.places.placesservicestatus.ok) { (var = 0; < place.photos.length; i++) { htmlmarkup += '<img src="' + place.photos[i].geturl({maxwidth:50, maxheight:50}) + '" />'; } } } var request = { placeid: result.place_id //retrieved radar search, specific id causing 403s "24f2649470d994428b3c95ffa421e4254d804cc8" }; service.getdetails(request, placedetailscallback); //service google.maps.places.placesservice this example url of correct photo: https://lh4.googleusercontent.com/-h7xz6z2_t0a/vnmjo0u9pvi/aaaaaaaaaa4/d9dzoeqoies/w50-h50-s0/photo.jpg
and 1 returning warning icon: https://lh4.googleusercontent.com/-r27f8rad6re/uazyjosj7ji/aaaaaaaaa-c/af3alohza98/w50-h50-s0/photo.jpg
Comments
Post a Comment