# ＊ 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="/files/ADtjxLiQtGaPWENaZqwo" 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')
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sdv.dev/rdt/transformers-glossary/deep-data-understanding/phone-number/geoextractor.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
