mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-15 01:26:56 +01:00
39 lines
741 B
Markdown
39 lines
741 B
Markdown
|
---
|
||
|
title: location
|
||
|
description: Describes location on Earth
|
||
|
---
|
||
|
## Constructor: location
|
||
|
[Back to constructors index](index.md)
|
||
|
|
||
|
|
||
|
|
||
|
Describes location on Earth
|
||
|
|
||
|
### Attributes:
|
||
|
|
||
|
| Name | Type | Required | Description |
|
||
|
|----------|:-------------:|:--------:|------------:|
|
||
|
|latitude|[double](../types/double.md) | Yes|Latitude of location in degrees as defined by sender|
|
||
|
|longitude|[double](../types/double.md) | Yes|Longitude of location in degrees as defined by sender|
|
||
|
|
||
|
|
||
|
|
||
|
### Type: [Location](../types/Location.md)
|
||
|
|
||
|
|
||
|
### Example:
|
||
|
|
||
|
```
|
||
|
$location = ['_' => 'location', 'latitude' => double, 'longitude' => double, ];
|
||
|
```
|
||
|
|
||
|
Or, if you're into Lua:
|
||
|
|
||
|
|
||
|
```
|
||
|
location={_='location', latitude=double, longitude=double, }
|
||
|
|
||
|
```
|
||
|
|
||
|
|