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

# EventLocation

> Protobuf class EventLocation generated from WAProto.

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

## Implements

* [`IEventLocation`](/proto-reference/MsgOpaqueData/interfaces/IEventLocation)

## Constructors

### new EventLocation()

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

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

#### Parameters

##### p?

[`IEventLocation`](/proto-reference/MsgOpaqueData/interfaces/IEventLocation)

#### Returns

[`EventLocation`](/proto-reference/MsgOpaqueData/classes/EventLocation)

## Properties

### address?

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

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

#### Implementation of

[`IEventLocation`](/proto-reference/MsgOpaqueData/interfaces/IEventLocation).[`address`](/proto-reference/MsgOpaqueData/interfaces/IEventLocation#address)

***

### degreesLatitude?

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

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

#### Implementation of

[`IEventLocation`](/proto-reference/MsgOpaqueData/interfaces/IEventLocation).[`degreesLatitude`](/proto-reference/MsgOpaqueData/interfaces/IEventLocation#degreeslatitude)

***

### degreesLongitude?

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

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

#### Implementation of

[`IEventLocation`](/proto-reference/MsgOpaqueData/interfaces/IEventLocation).[`degreesLongitude`](/proto-reference/MsgOpaqueData/interfaces/IEventLocation#degreeslongitude)

***

### jpegThumbnail?

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

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

#### Implementation of

[`IEventLocation`](/proto-reference/MsgOpaqueData/interfaces/IEventLocation).[`jpegThumbnail`](/proto-reference/MsgOpaqueData/interfaces/IEventLocation#jpegthumbnail)

***

### name?

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

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

#### Implementation of

[`IEventLocation`](/proto-reference/MsgOpaqueData/interfaces/IEventLocation).[`name`](/proto-reference/MsgOpaqueData/interfaces/IEventLocation#name)

***

### url?

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

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

#### Implementation of

[`IEventLocation`](/proto-reference/MsgOpaqueData/interfaces/IEventLocation).[`url`](/proto-reference/MsgOpaqueData/interfaces/IEventLocation#url)

## Methods

### create()

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

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

#### Parameters

##### properties?

[`IEventLocation`](/proto-reference/MsgOpaqueData/interfaces/IEventLocation)

#### Returns

[`EventLocation`](/proto-reference/MsgOpaqueData/classes/EventLocation)

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

[`EventLocation`](/proto-reference/MsgOpaqueData/classes/EventLocation)

***

### encode()

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

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

#### Parameters

##### m

[`IEventLocation`](/proto-reference/MsgOpaqueData/interfaces/IEventLocation)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

[`EventLocation`](/proto-reference/MsgOpaqueData/classes/EventLocation)

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

[`EventLocation`](/proto-reference/MsgOpaqueData/classes/EventLocation)

##### o?

`IConversionOptions`

#### Returns

`object`
