How to know the exact location of any mobile number

Legally, you are not allowed to track any phone number without a court order.Of course, there are plenty of ways to do so but they would be considered illegal for most part now.But there are android apps and iphone apps to which you can add friends ans family. Because this is a case