I'm working with google maps autocomplete javascript.
This is a sample object/array? called 'place'
"result" : {
"name" : "Hunters Landing",
"photos" : [
{
"height" : 715,
"raw_reference" : {
"fife_url" : "photo.jpg"
},
"width" : 1280
},
"scope" : "GOOGLE",
"types" : [ "restaurant", "food", "establishment" ],
to get the value for name I use
place.name; // Hunters Landing
But I can't figure out how to get the image url. I've tried various combinations of [0] and so on.
place.photos[0].raw_reference[0].fife_url;
please help.
Thanks