# Send Location

Sends a location message to given chat

| Parameters     | Description                                                                                                              |
| -------------- | ------------------------------------------------------------------------------------------------------------------------ |
| latitude       | Latitude coordinate                                                                                                      |
| longitude      | Longitude coordinate                                                                                                     |
| locationName   | Location name                                                                                                            |
| receiverNumber | Receiver number (e.g, \[code country]\[number] 6283838204803)                                                            |
| isGroup        | fill *`true`* if the `receiverNumber` is group (e,g \[code country]\[number]-\[random number] `6283838204803-0000@g.us`) |

```php
function location(String|Int $latitude, String|Int $longitude, String $locationName, String|Int $receiverNumber, bool $isGroup = false)
```

#### Example usage

```php
# with arguments name
\Ardzz\Wavel\Wavel::location()->location(
    latitude: '38.8951',
    longtitude: '-77.0364',
    locationName: 'Washington DC',
    receiverNumber: '6283838204803'
);

# without arguments name
\Ardzz\Wavel\Wavel::location()->location(
    '38.8951', '-77.0364',
    'Washington DC', '6283838204803'
);
```
