I have a question about GPS alarm.
I have some points (latitude and longitude). I need a way to check if the user location is near to some of these points (approximately are 1800 points).
If I remember correctly there is a best practice to do this: to be notified when GPS position is in a certain region. This allows for optimizations regarding the battery.
Can you give me any suggestions?
Define what you mean by near to some of these points.
You could use the haversine formula to calculate the distance between your current location and each of the set of test points. The calculation involves a fair number of trig functions so could work out computationally intensive but depending upon your application it may not be necessary to recalculate more than once a minute or so.
1800 points as per 1800 different regions to be monitored?
It is not possible. See here:
For this reason, Core Location limits to 20 the number of regions that may be simultaneously monitored by a single app.
If you have more than 20 regions to be monitored, this is what you can do:-
I have developed a region monitoring app myself and this is what we do.