---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://appmetrica.yandex.com/docs/en/data-collection/geo.md
  - https://appmetrica.yandex.com/docs/ru/data-collection/geo.md
---
> **Documentation Index:** Fetch the complete configuration index at https://appmetrica.yandex.com/docs/en/llms.txt

# Determining the location

AppMetrica can determine the location of a device. Location accuracy depends on the configuration that the library uses for initialization:

**With the locationTracking option enabled**

:   {% note info "" %}

    For iOS, the option is enabled by default.

    {% endnote %}

    Location is determined down to the city level. You can retrieve the information in [reports](../mobile-reports/index.md) and via the [Logs API](../mobile-api/logs/about.md).

    The app requests GPS access. Battery consumption may increase.

**With the locationTracking option disabled**

:   {% note info "" %}

    Starting with the Android AppMetrica SDK 5.0.0, the `locationTracking` option is disabled by default.

    If the version is lower than 5.0.0, the `locationTracking` option is enabled by default.

    {% endnote %}

    The location is determined by the IP address with accuracy to the country. You can retrieve the information in [reports](../mobile-reports/index.md) but not the [Logs API](../mobile-api/logs/about.md).

    The app requests GPS access. Battery consumption does not increase.

    {% note info "" %}

    If you have IP address masking enabled, AppMetrica determines the location with country-level accuracy using the unmasked part of the IP address.

    {% endnote %}

## Determining the location {#track-location}

Examples of location tracking on different platforms:

- [Android](https://appmetrica.yandex.com/docs/en/sdk/android/analytics/android-operations.md#track-location)
- [iOS](https://appmetrica.yandex.com/docs/en/sdk/ios/analytics/ios-operations.md#track-location)
- [Flutter](https://appmetrica.yandex.com/docs/en/sdk/flutter/analytics/flutter-operations.md#track-location)
- [React Native](https://appmetrica.yandex.com/docs/en/sdk/react-native/analytics/react-native-operations.md#track-location)
- [Unity](https://appmetrica.yandex.com/docs/en/sdk/unity/analytics/unity-operations.md#track-location)

<!-- source: en/_includes/feedback-button.md -->
If you didn't find the answer you were looking for, you can use the feedback form to submit your question. Please describe the problem in as much detail as possible. Attach a screenshot if possible.

<a href="../troubleshooting/feedback-new">
  <span class="button">Contact support</span>
</a>

<a href="../troubleshooting/feedback-docs">
  <span class="button">Suggest an improvement for documentation</span>
</a>
<!-- endsource: en/_includes/feedback-button.md -->
