There is this list data stores
that has elements that looks like this.
[ [...],[23349, 'storeName', "['0285434668']", 'open', [], 35.2132, 129.046],[...] ]
I can pass the list as in return render_template("geo.html", stores=stores)
but I'm not sure how I can access this as a list data in javascript so that I can use it as below.
var i;
for(i = 0; i < 5; i++){
var marker = new google.maps.Marker({position: {lat: parseFloat(stores[i][5]), lng: parseFloat(stores[i][6])}, map: map});
}
On the server side, I use python and flask.