I am trying to create a nested dictionary from 3 lists:
Input:
list1 = [a, b, c]
list2 = [d, e, f]
list3 = [1, 2, 3]
Desired output:
{'type':'FeatureCollection', 'features': [
{'type':'Feature',
'geometry': {'type':'a',
'coordinates':'d'}
'id': '1'},
{'type':'Feature',
'geometry': {'type':'b',
'coordinates':'e'}
'id': '2'},
{'type':'Feature',
'geometry': {'type':'c',
'coordinates':'f'}
'id': '3'}]}
Any idees?
Thanks