added code to pick closest location in ParseDataHelper.