Im lost trying to a list of json file variables ("street address") to multiple pins on google maps.
My json file looks like the following.
{
"address_number": {
"address": "20 test ct",
"time": "10:00 PM",
"show_address": "false",
"code": "000000"
},
"address_number2": {
"address": "20 test ct",
"time": "10:00 PM",
"show_address": "false",
"code": "000002"
},
"916788": {
"address": "test addy ct",
"date": "0011-11-11",
"time": "11:11",
"show_address": "True",
"code": "11111"
},
"519802": {
"address": "20 test ct",
"date": "",
"time": "",
"show_address": "",
"code": "000000"
},
"586910": {
"address": "20 test ct",
"date": "",
"time": "",
"show_address": "",
"code": "000000"
}
How can I take the ("address") and convert them into multiple pins on the map while the other data sets are listed as a note when said pin is clicked on.
$.ajax({
url: './add_address/data.json',
dataType: 'json',
type: 'get',
cache: true,
success: function (data) {
$(data.address_number).each(function (index, value) {
console.log(value.name);
})
}});
Above is the only ideas I had to accomplish this, besides that Im pretty much lost.