How to get one instance of a person's latitude/longitude position, without getting constant updates?
posted 5 years ago
I have a very basic question that is throwing me off right now. I want to get the user's location (i.e. current lat/lon co-ordinates) to be used to check against a sqlite database of location co-ordinates, and find the nearest ones. I am looking at the CLLocation class, but from what I can tell, I would use this class to get regular updates to the user's movement change which I don't need. I want to get the user's current latitude and longitude position, and based on that, determine what locations in the database are closest. How would I do this?