I have got a array of Markers
var markers = [{
"longititude": "78.377670",
"latitude": "17.439669",
"name": "one"
}, {
"longititude": "78.377617",
"latitude": "17.439692",
"name": "two"
}, {
"longititude": "78.377644",
"latitude": "17.439674",
"name": "three"
}, {
"longititude": "78.377665",
"latitude": "17.439667",
"name": "four"
}]
I am sending latitude and longitude and checking if it falls under a range of certain distance .
In response from the function i am expecting the total count and the latitude and longitude values under which it falls .
But i am always getting the last element of the array
http://jsfiddle.net/1nm9adn3/1/
Could you please let me know how to resolve this issue .