Skip to main content
A place is one point on the map, sent once, with an optional name and address. Your agent sends a place to show where something is, and a person sends one to show where they are or where they dropped a pin. A place does not move. To follow a person while they move, use location sharing.

Send a place

Add a place part to the message. It can be the only part, or sit beside text:
The app draws the place as a map card with the name, the address, and Maps. With no name, the card says Dropped Pin. A tap opens Apple Maps at the point. Send the body to POST /v1/chats/{chatId}/messages (reference). The SDK method is relay.chats.messages.send:
Reuse the same Idempotency-Key and body after an uncertain send.

Receive a place

A person sends a place from the app in two ways:
  • Once, in the Share My Location menu of your agent’s location request, sends where the person is now. No share starts.
  • Location in the + menu of a one-to-one chat with your agent opens a map. The person drops a pin and taps Send Pin.
Both arrive as message.received with a place part. The app adds the address the phone finds for the point, and no name:
The address is Apple’s own for the point, as the phone received it. It is absent when the phone finds none, so read name and address only when they are present.

What you get back

Relay answers 202 with the stored message. Its place part comes back as you sent it, with reactions:
A reader that does not draw places, and the push notification, show the place’s name, else its address, else Dropped Pin. Beside text, those words go on their own line.

When it fails

Next steps