# ＊ GeoExtractor

{% hint style="info" %}
**＊SDV Enterprise Feature.** This feature is available to our licensed users and is not currently in our public library. For more information, visit our page to [Explore SDV](https://docs.sdv.dev/sdv/explore/sdv-enterprise/compare-features).
{% endhint %}

The `GeoExtractor` extracts geographical context from the phone numbers so that they can be used later for data science. It keeps the original phone numbers so that the same exact numbers can be recovered during the reverse transform.

<figure><img src="https://2225246359-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVGX92M819eIp0rMg5elc%2Fuploads%2FejqmoIWfvUErnzW5MOOE%2Frdt_transformers-glossary-deep-data-understanding-phone-number-geo-extractor_June%2002%202025.png?alt=media&#x26;token=7d87126a-bdcb-4fc3-8141-ef47a4a5b75b" alt=""><figcaption></figcaption></figure>

```python
from rdt.transformers.phone_number import GeoExtractor

transformer = GeoExtractor()
```

## Parameters

**`default_country`**: If phone number does not have an international country code, provide the country code to use.

<table data-header-hidden><thead><tr><th width="214"></th><th></th></tr></thead><tbody><tr><td>(default) <code>None</code></td><td>No default country. All phone numbers must have international country codes.</td></tr><tr><td><code>&#x3C;string></code></td><td>A string representing an <a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">Alpha-2 country code</a> (<code>'US'</code>)</td></tr></tbody></table>

### Examples

```python
from rdt.transformers.phone_number import GeoExtractor
ge = GeoExtractor(default_country='US')
```
