Getting items and their locations and determine the nearest item