---
title: "WhatsApp location messages"
description: "Send a pin with a latitude and longitude on WhatsApp, its coordinate and text limits, and how an inbound location shared by a contact reads back."
canonical: "https://bird.com/docs/guides/whatsapp/message-types/location"
---

# WhatsApp location messages

A location message sends a pin: a point on the map, with an optional name and address underneath it. This is the send side; to ask a contact to share theirs instead, see [location requests](/docs/guides/whatsapp/message-types/interactive/location-requests).

WhatsApp location message showing San Francisco City Hall on a map, its address, and an Open in Maps link.

## Send a location

Set `location.latitude` and `location.longitude`:

**TypeScript**

```typescript
const msg = await bird.whatsapp.send({
  to: "+16505551234",
  from: "+13124495648",
  location: { latitude: 37.7793, longitude: -122.4193 },
});
console.log(msg.id, msg.status);
```

Examples: [TypeScript](/docs/guides/whatsapp/message-types/location.ts.md) · [Python](/docs/guides/whatsapp/message-types/location.py.md) · [Go](/docs/guides/whatsapp/message-types/location.go.md) · [PHP](/docs/guides/whatsapp/message-types/location.php.md) · [CLI](/docs/guides/whatsapp/message-types/location.cli.md) · [MCP](/docs/guides/whatsapp/message-types/location.mcp.md) · [cURL](/docs/guides/whatsapp/message-types/location.curl.md)

The full shape adds `name` and `address`:

```json
{
  "to": "+16505551234",
  "from": "+13124495648",
  "location": {
    "latitude": 37.7793,
    "longitude": -122.4193,
    "name": "Ferry Building Pickup",
    "address": "1 Market St, San Francisco, CA 94105"
  }
}
```

`address` only displays to the recipient when `name` is also set. `from` is required on every service message: a number your workspace owns, not a Bird-managed one.

## Limits

| Field       | Bound                                                          | Enforced by             |
| ----------- | -------------------------------------------------------------- | ----------------------- |
| `latitude`  | required, -90 to 90, decimal degrees                           | Bird, at accept (`422`) |
| `longitude` | required, -180 to 180, decimal degrees                         | Bird, at accept (`422`) |
| `name`      | optional, up to 1000 characters                                | Bird, at accept (`422`) |
| `address`   | optional, up to 1000 characters, shown only when `name` is set | Bird, at accept (`422`) |

WhatsApp's own docs list `latitude` and `longitude` as required with no stated numeric range; the ±90/±180 range check and the 1000-character caps on `name` and `address` are Bird's own bounds.

## Reading an inbound location

A contact sharing their location, unprompted or in reply to a location request, produces an ordinary inbound `location` message. Nothing on it is guaranteed: a raw pin can arrive with no `name` and no `address` at all, and an inbound one can also carry a `url` linking to the place, which never appears on a location you send. Location isn't a media type, so there's no file to fetch. See [Receiving WhatsApp locations](/docs/guides/whatsapp/receiving-whatsapp/location) for the inbound read in full, the `whatsapp.received` payload, and what to watch for.

## Limits and edge cases

- **The customer service window has to be open.** A location send is a service message, deliverable only inside an open window; see the hub's [customer service window](/docs/guides/whatsapp/message-types#the-customer-service-window).
- **`name` and `address` are genuinely optional on read, not optional-with-a-fallback.** A raw pin has neither, and `address` never appears without `name`. Don't assume a street address accompanies a pair of coordinates.
- **This is not the same type as a location request.** [Location requests](/docs/guides/whatsapp/message-types/interactive/location-requests) are an interactive type that asks the recipient for their own location; this page sends one to them. Don't conflate the two send shapes.
- **A tap on a location request comes back as an ordinary inbound `location` message, not an `interactive_reply`.** An integration that watches only `interactive_reply` for taps misses this entirely; it has to also watch inbound `location`.

## Next steps

- [WhatsApp service messages](/docs/guides/whatsapp/message-types): the customer service window and the model every service message shares
- [Location requests](/docs/guides/whatsapp/message-types/interactive/location-requests): ask a contact for their location instead of sending one
- [Sending WhatsApp messages](/docs/guides/whatsapp/sending-whatsapp): the request envelope, the `202` model, and safe retries

## Related resources

- [Connecting WhatsApp to Bird: from buying a number to a live channel](/learn/whatsapp/connecting-whatsapp-to-bird) (video)
- [What is the 24-hour customer service window on WhatsApp?](/explained/whatsapp/what-is-the-24-hour-customer-service-window) (answer)
- [WhatsApp message builder](/tools/whatsapp-message-builder) (tool)
- [WhatsApp](/whatsapp-api) (product)

[Get an implementation brief](/learn/workspace?topic=whatsapp)
