# PDL_EnableLocationTracking

## Description

This API activates or deactivates location tracking on the device. You must call this function before calling `PDL_GetLocation`.

Call with `PDL_TRUE` to enable; `PDL_FALSE` to disable.

## Syntax

>     PDL_Err PDL_EnableLocationTracking(PDL_bool activate);

## Returns

>     PDL_ECONNECTION — Unable to communicate with app card.
>     PDL_NOERROR — Success.

Note that success does not necessarily mean tracking has been enabled. For instance, it could still be disabled if the user did not have GPS tracking turned on. As this is an asynchronous call, `PDL_NOERROR` means that location tracking for this app has been successfully requested.