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(stringchatID, RequestOptionsoptions?): LocationRequestResponse { message, success }
POST/v3/chats/{chatId}/location/request
Get location data
client.chats.location.retrieve(stringchatID, RequestOptionsoptions?): GetChatLocationResponse { data, success }
GET/v3/chats/{chatId}/location