# Collect location

You can now **collect user location seamlessly on WhatsApp** using a native block that allows users to share their location with just a tap of a button—no typing required.

<figure><img src="https://360969599-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsrMxU8nO3RjusUiYuXBB%2Fuploads%2FOffkR9aZvq0CEv0Vjryc%2Fimage.png?alt=media&#x26;token=47827e0a-cd9f-429a-8bef-c64d12e886ee" alt=""><figcaption></figcaption></figure>

### Question

The question to be asked when collecting the location from the user. This question will be followed with a "Send location" button.&#x20;

<figure><img src="https://360969599-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsrMxU8nO3RjusUiYuXBB%2Fuploads%2FOdEAJdBunSOibnSFDjre%2FCleanShot%202025-07-14%20at%2017.32.30.png?alt=media&#x26;token=55b9996b-c334-428c-9de3-36d8522b2134" alt=""><figcaption></figcaption></figure>

### Error message

The error message to be sent when the user sends something unexpected than the location details i.e they closed the location input screen and typed something random.

### Location response

When the user submits the location, we receive the following details:

* Location name
* Address
* Latitude
* Longitude

You can map these fields to your variables to use the collected data for API calls for anything else.

<figure><img src="https://360969599-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsrMxU8nO3RjusUiYuXBB%2Fuploads%2FCHvlxfIzSFtjUuGSr3X5%2FCleanShot%202025-07-14%20at%2017.35.16.png?alt=media&#x26;token=c222e952-639d-4111-b731-a9b78c4e54bb" alt=""><figcaption></figcaption></figure>
