Location
Request and retrieve real-time location data via iMessage.
Use these endpoints to request a contact’s location, retrieve location data for contacts who are sharing with you, and subscribe to webhooks when someone starts or stops sharing their location.
Coordinates are returned in GeoJSON format:
[longitude, latitude] or [longitude, latitude, altitude] if altitude is available.
Request location sharing
client.Chats.Location.Request(ctx, chatID) (*LocationRequestResponse, error)
POST/v3/chats/{chatId}/location/request
Get location data
client.Chats.Location.Get(ctx, chatID) (*GetChatLocationResponse, error)
GET/v3/chats/{chatId}/location