I am working with a list of data containing various attributes like latitude, longitude, title, and pair status.
[0: {lat: "37.829998", lng: "-122.003152", title: "Allocate", pairStatus: 1, …}
1: {lat: "37.829998", lng: "-122.003152", title: "Commission", pairStatus: 1, …}
2: {lat: "37.829998", lng: "-122.003152", title: "Aggregate", pairStatus: 1, …}
3: {lat: "37.7745586", lng: "-121.9610328", title: "Ship", pairStatus: 1, …}
4: {lat: "37.7745586", lng: "-121.9610328", title: "Ship", pairStatus: 1, …}]
var getAutoRow;
getAutoRow = this.latlist.find(fetch => fetch.lat== lat);
My requirement is to extract specific data based on the selected lat from the list:
[0: {lat: "37.829998", lng: "-122.003152", title: "Commission"}]
It's important that I can’t pass the title attribute. Can you assist me in retrieving the specific data using the lat value and index?