Hello,
I have a json file which look like this:
[
{
"long": 20.744430042780497,
"lat": 42.21149312068367,
"lartesia": null,
"lloji": null,
"specia": null,
"foto": null,
"Tjeter": null
},
but to show those informations in a library that i am using they need to look like this:
var pointJson =
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"name": "blla blla blla ",
"lartesia": "10metra"
},
"geometry": {
"coordinates": [
20.744430042780497,
42.21149312068367
],
"type": "Point"
}
}},
So basically i need to add some properties and some coordinates to that, i know that u may say do it manually yeah u are kinda right, but i have 7k lines code in this json file with coordinates so i know a little bit that i need to use array map, but can somebody help me? or atleast any advice to it ?