我如何使用 google android api 知道纬度和经度是否接近我当前的位置?

how can I know if a latitude and longitude are close to my current location using google android api?

我只是想知道如何使用google android api 获取我当前的位置,显示该位置并将该位置与其他人的经纬度进行比较。

查看 android 文档,了解您在现场所需的一切。因此,例如,首先您将获得这样的当前位置

@Override
public void onConnected(Bundle connectionHint) {
    mLastLocation = LocationServices.FusedLocationApi.getLastLocation(
            mGoogleApiClient);
    if (mLastLocation != null) {
        mLatitudeText.setText(String.valueOf(mLastLocation.getLatitude()));
        mLongitudeText.setText(String.valueOf(mLastLocation.getLongitude()));
    }
}

然后您可以使用 distanceBetween(Location dest)

方法将其与其他位置进行比较

希望对您有所帮助。