hi all, i want to use the best Coordinate. but one thing is confusing me
here i want to check that if new location accuracy is better then use new location otherwise use old location
if (newLocation.horizontalAccuracy>oldLocation.horizontalAccuracy)
{
self.bestEffortAtLocation=newLocation; // this mean new location is better accurate
}
else
{
self.bestEffortAtLocation=oldLocation; // this mean old location is better accurate
}
i want to know that above check is correct or not?
i know this is a stupid question. but now at this time i am at surface level.
Please suggest