I am developing an Iphone monotouch application.
I am getting list of locations from server, i want to display only nearest location on the map among the list of locations.
please provide me related link, thank's in advance.
I am developing an Iphone monotouch application.
I am getting list of locations from server, i want to display only nearest location on the map among the list of locations.
please provide me related link, thank's in advance.
Location has latitude and lognitude. First sort by latitude and get the closest latitudes (+-x). Then filter again by closest longitudes(+-x). Then you have your points.
You can use a Distance Matrix API. Using this API you can calculate distances between any given positions.