## Stop location sharing

`client.Chats.Location.Stop(ctx, chatID, body) (*StopChatLocationSharingResponse, error)`

**delete** `/v3/chats/{chatId}/location`

Stop a contact's location share with you. `handle` is required and names whose
share to end.

Returns `202` when the request is accepted. The stop is carried out on the contact's
device, and the `location.sharing.stopped` webhook fires once sharing has ended.

Sharing is per contact, so this ends that contact's share in every chat you have
with them.

Returns `404` if the contact isn't currently sharing.

### Parameters

- `chatID string`

- `body ChatLocationStopParams`

  - `Handle param.Field[string]`

    Phone number (E.164 format) or email address of the contact whose share to end

### Returns

- `type StopChatLocationSharingResponse struct{…}`

  - `Message string`

  - `Success bool`

### Example

```go
package main

import (
  "context"
  "fmt"

  "github.com/linq-team/linq-go"
  "github.com/linq-team/linq-go/option"
)

func main() {
  client := linqgo.NewClient(
    option.WithAPIKey("My API Key"),
  )
  stopChatLocationSharingResponse, err := client.Chats.Location.Stop(
    context.TODO(),
    "975d0776-bd17-4273-8337-f346b4c661b0",
    linqgo.ChatLocationStopParams{
      Handle: "+15551234567",
    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", stopChatLocationSharingResponse.Message)
}
```

#### Response

```json
{
  "success": true,
  "message": "Location sharing stop requested"
}
```
