Skip to content

GramIO API Reference / @gramio/contexts/dist / Location

Class: Location

Defined in: contexts/index.d.ts:538

This object represents a point on the map.

Extended by

Constructors

Constructor

new Location(payload): Location

Defined in: contexts/index.d.ts:540

Parameters

ParameterType
payloadTelegramLocation

Returns

Location

Properties

PropertyTypeDefined in
payloadTelegramLocationcontexts/index.d.ts:539

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

Defined in: contexts/index.d.ts:542

MDN

Returns

string


heading

Get Signature

get heading(): number

Defined in: contexts/index.d.ts:559

The direction in which user is moving, in degrees; 1-360. For active live locations only.

Returns

number


horizontalAccuracy

Get Signature

get horizontalAccuracy(): number

Defined in: contexts/index.d.ts:548

The radius of uncertainty for the location, measured in meters; 0-1500

Returns

number


latitude

Get Signature

get latitude(): number

Defined in: contexts/index.d.ts:546

Latitude as defined by sender

Returns

number


livePeriod

Get Signature

get livePeriod(): number

Defined in: contexts/index.d.ts:554

Time relative to the message sending date, during which the location can be updated, in seconds. For active live locations only.

Returns

number


longitude

Get Signature

get longitude(): number

Defined in: contexts/index.d.ts:544

Longitude as defined by sender

Returns

number


proximityAlertRadius

Get Signature

get proximityAlertRadius(): number

Defined in: contexts/index.d.ts:564

Maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only.

Returns

number