i am designing an Iot project. In that project i want to transfer small bytes of information from one place to another place which is located more than 2kms away from previous location. therefore distance and also durability and ability to cross hard objects like trees are important parameters.
The main factor in your application is the range, durability, and ability so according to it, you should use the LoRaWAN network. Because it's range is an urban environment with an outdoor gateway is about 2-3km wide coverage and in a rural area more than 5km
The range of NRF24l01 max 100 meters that too in open space and with the lowest baud rate. If you want to use NRF24L01 you have to buy and connect it to a PA and an LNA like this.
There are different LoRa Modules available in the market and they work on different frequencies but have large area network coverage.
Below are the links to the datasheet of some LoRa modules and NRF24L01:
Please read the datasheet and compare it. Learn to read the datasheet of modules as it will help you a lot in the future deciding for the components.