A location API is a fused location provider. The fused location provider is a Google Play Services location API that dynamically integrates various signals to offer the location data that your app requires. It controls underlying location technologies such as GPS and Wi-Fi and provides a simple API for specifying the desired service quality.
When you enable location and Wi-Fi scanning, you can utilize this function to improve the device's location-based services. It calculates the distance between the phone and the RTT-capable Wi-Fi access point (AP)