def get_nearest_location(self, location):
        if not self.segments:
            return None

        result = None
        distance = None
        result_track_segment_no = None
        result_track_point_no = None

        for i in range(len(self.segments)):
            track_segment = self.segments[i]
            nearest_location, track_point_no = track_segment.get_nearest_location(location)
            nearest_location_distance = None
            if nearest_location:
                nearest_location_distance = nearest_location.distance_2d(location)

            if not distance or nearest_location_distance < distance:
                if nearest_location:
                    distance = nearest_location_distance
                    result = nearest_location
                    result_track_segment_no = i
                    result_track_point_no = track_point_no

        return result, result_track_segment_no, result_track_point_no
Returns the identifier for the object this row will represent.
dataset/ETHPy150Open tkrajina/gpxpy/gpxpy/gpx.py/GPXTrack.get_nearest_location--crossover with--dataset/ETHPy150Open CiscoSystems/avos/horizon/tables/base.py/DataTable.get_object_id