I'm having problems implementing JSON data into Google Maps as markers usign Angular. My JSON data is:
[
{
"_id": "TRK45679101121",
"timestamp": "2015-02-03T09:18:02.989Z",
"status": 1,
"path": [
{
"timestamp": 51422955082989,
"speed": 30,
"direction": 45.510029,
"longitude": 81.510029,
"latitude": 8.675009
}
]
},
{
"_id": "TRK456799",
"timestamp": "2015-02-03T09:18:02.989Z",
"status": 1,
"path": [
{
"timestamp": 51422955082989,
"speed": 30,
"direction": 45.510029,
"longitude": 81.510029,
"latitude": 8.675009
}
]
},
{
"_id": null,
"timestamp": "2016-01-22T08:10:43.238Z",
"status": null,
"path": null
}
]
Do you know how one can read this through JavaScript and integrate into the Google Maps API? Any help would be appreciated, thanks in advance.
Note: I only need to implement the latitude and longitude. In case the marker is clicked, the "_id" and "status" needs to show, which I'll look into later.