Dear all ,
I am trying to develop code that will check for each location (latitude and longitude) for a nmea file ( contains over 200,000 point) to check if this file contains some points that was close to a certain location or not . How can we do this in such a way that will make the code fast . we have a nmean file with over 200,000 waypoints and have a list of locations with 140 location name and position (latitude and longitude and permitted distance) . I need to develop a code that will pass through all of the 200000 way points to list which waypoints where close to the listed locations by this distance (eg 10 meter).
I have the code but it seems to be very slow , taking 0.75 second for 2000 waypoints only .
it loops through all way points and for each , it calculates the distance to the set value adn if it is less than the set value , it records that the place is ok .
are there any ideas.
Thanks,