> ## Documentation Index
> Fetch the complete documentation index at: https://baileys.wiki/llms.txt
> Use this file to discover all available pages before exploring further.

# LocationMessage

> Protobuf class LocationMessage generated from WAProto.

Defined in: [WAProto/index.d.ts:7380](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7380)

## Implements

* [`ILocationMessage`](/proto-reference/Message/interfaces/ILocationMessage)

## Constructors

### new LocationMessage()

> **new LocationMessage**(`p`?): [`LocationMessage`](/proto-reference/Message/classes/LocationMessage)

Defined in: [WAProto/index.d.ts:7381](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7381)

#### Parameters

##### p?

[`ILocationMessage`](/proto-reference/Message/interfaces/ILocationMessage)

#### Returns

[`LocationMessage`](/proto-reference/Message/classes/LocationMessage)

## Properties

### accuracyInMeters?

> `optional` **accuracyInMeters**: `null` | `number`

Defined in: [WAProto/index.d.ts:7388](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7388)

#### Implementation of

[`ILocationMessage`](/proto-reference/Message/interfaces/ILocationMessage).[`accuracyInMeters`](/proto-reference/Message/interfaces/ILocationMessage#accuracyinmeters)

***

### address?

> `optional` **address**: `null` | `string`

Defined in: [WAProto/index.d.ts:7385](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7385)

#### Implementation of

[`ILocationMessage`](/proto-reference/Message/interfaces/ILocationMessage).[`address`](/proto-reference/Message/interfaces/ILocationMessage#address)

***

### comment?

> `optional` **comment**: `null` | `string`

Defined in: [WAProto/index.d.ts:7391](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7391)

#### Implementation of

[`ILocationMessage`](/proto-reference/Message/interfaces/ILocationMessage).[`comment`](/proto-reference/Message/interfaces/ILocationMessage#comment)

***

### contextInfo?

> `optional` **contextInfo**: `null` | [`IContextInfo`](/proto-reference/interfaces/IContextInfo)

Defined in: [WAProto/index.d.ts:7393](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7393)

#### Implementation of

[`ILocationMessage`](/proto-reference/Message/interfaces/ILocationMessage).[`contextInfo`](/proto-reference/Message/interfaces/ILocationMessage#contextinfo)

***

### degreesClockwiseFromMagneticNorth?

> `optional` **degreesClockwiseFromMagneticNorth**: `null` | `number`

Defined in: [WAProto/index.d.ts:7390](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7390)

#### Implementation of

[`ILocationMessage`](/proto-reference/Message/interfaces/ILocationMessage).[`degreesClockwiseFromMagneticNorth`](/proto-reference/Message/interfaces/ILocationMessage#degreesclockwisefrommagneticnorth)

***

### degreesLatitude?

> `optional` **degreesLatitude**: `null` | `number`

Defined in: [WAProto/index.d.ts:7382](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7382)

#### Implementation of

[`ILocationMessage`](/proto-reference/Message/interfaces/ILocationMessage).[`degreesLatitude`](/proto-reference/Message/interfaces/ILocationMessage#degreeslatitude)

***

### degreesLongitude?

> `optional` **degreesLongitude**: `null` | `number`

Defined in: [WAProto/index.d.ts:7383](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7383)

#### Implementation of

[`ILocationMessage`](/proto-reference/Message/interfaces/ILocationMessage).[`degreesLongitude`](/proto-reference/Message/interfaces/ILocationMessage#degreeslongitude)

***

### isLive?

> `optional` **isLive**: `null` | `boolean`

Defined in: [WAProto/index.d.ts:7387](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7387)

#### Implementation of

[`ILocationMessage`](/proto-reference/Message/interfaces/ILocationMessage).[`isLive`](/proto-reference/Message/interfaces/ILocationMessage#islive)

***

### jpegThumbnail?

> `optional` **jpegThumbnail**: `null` | `Uint8Array`\<`ArrayBufferLike`>

Defined in: [WAProto/index.d.ts:7392](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7392)

#### Implementation of

[`ILocationMessage`](/proto-reference/Message/interfaces/ILocationMessage).[`jpegThumbnail`](/proto-reference/Message/interfaces/ILocationMessage#jpegthumbnail)

***

### name?

> `optional` **name**: `null` | `string`

Defined in: [WAProto/index.d.ts:7384](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7384)

#### Implementation of

[`ILocationMessage`](/proto-reference/Message/interfaces/ILocationMessage).[`name`](/proto-reference/Message/interfaces/ILocationMessage#name)

***

### speedInMps?

> `optional` **speedInMps**: `null` | `number`

Defined in: [WAProto/index.d.ts:7389](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7389)

#### Implementation of

[`ILocationMessage`](/proto-reference/Message/interfaces/ILocationMessage).[`speedInMps`](/proto-reference/Message/interfaces/ILocationMessage#speedinmps)

***

### url?

> `optional` **url**: `null` | `string`

Defined in: [WAProto/index.d.ts:7386](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7386)

#### Implementation of

[`ILocationMessage`](/proto-reference/Message/interfaces/ILocationMessage).[`url`](/proto-reference/Message/interfaces/ILocationMessage#url)

## Methods

### create()

> `static` **create**(`properties`?): [`LocationMessage`](/proto-reference/Message/classes/LocationMessage)

Defined in: [WAProto/index.d.ts:7394](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7394)

#### Parameters

##### properties?

[`ILocationMessage`](/proto-reference/Message/interfaces/ILocationMessage)

#### Returns

[`LocationMessage`](/proto-reference/Message/classes/LocationMessage)

***

### decode()

> `static` **decode**(`r`, `l`?): [`LocationMessage`](/proto-reference/Message/classes/LocationMessage)

Defined in: [WAProto/index.d.ts:7396](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7396)

#### Parameters

##### r

`Uint8Array`\<`ArrayBufferLike`> | `Reader`

##### l?

`number`

#### Returns

[`LocationMessage`](/proto-reference/Message/classes/LocationMessage)

***

### encode()

> `static` **encode**(`m`, `w`?): `Writer`

Defined in: [WAProto/index.d.ts:7395](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7395)

#### Parameters

##### m

[`ILocationMessage`](/proto-reference/Message/interfaces/ILocationMessage)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

> `static` **fromObject**(`d`): [`LocationMessage`](/proto-reference/Message/classes/LocationMessage)

Defined in: [WAProto/index.d.ts:7397](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7397)

#### Parameters

##### d

#### Returns

[`LocationMessage`](/proto-reference/Message/classes/LocationMessage)

***

### getTypeUrl()

> `static` **getTypeUrl**(`typeUrlPrefix`?): `string`

Defined in: [WAProto/index.d.ts:7400](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7400)

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

> **toJSON**(): `object`

Defined in: [WAProto/index.d.ts:7399](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7399)

#### Returns

`object`

***

### toObject()

> `static` **toObject**(`m`, `o`?): `object`

Defined in: [WAProto/index.d.ts:7398](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7398)

#### Parameters

##### m

[`LocationMessage`](/proto-reference/Message/classes/LocationMessage)

##### o?

`IConversionOptions`

#### Returns

`object`
