I need to change the origin value to lat/lang coordinate (from another geoJson file) instead of country name:
index = [
{
"Name": "Aish Merahrah",
"Origin": "Egypt",
"Description": "Made with fenugreek seeds and maize; dough allowed to
ferment overnight, then flattened and baked."
},
{
"Name": "Ajdov Kruh",
"Origin": "Slovenia",
"Description": "Made with buckwheat flour and potato."
}
]
so the result would be something like:
{
"Name": "Ajdov Kruh",
"Origin": "46.151241, 14.995463",
"Description": "Made with buckwheat flour and potato."
}
I'm not sure about the workflow, do I need to extract the JSON value variable and somehow use that variable to obtain lat & lang data? Btw I need to use only JS/JQuery and Node.