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

# PFSegmentsPlayerLocation

> PFSegmentsPlayerLocation 数据模型。

PFSegmentsPlayerLocation 数据模型。

## 语法

```cpp theme={null}
typedef struct PFSegmentsPlayerLocation {  
    const char* city;  
    PFContinentCode continentCode;  
    PFCountryCode countryCode;  
    double const* latitude;  
    double const* longitude;  
} PFSegmentsPlayerLocation;  
```

### 成员

**`city`**   const char\*<br />*is null-terminated*

（可选）玩家地理位置的城市。

**`continentCode`**   [PFContinentCode](/services/playfab/api-references/c/pftypes/enums/pfcontinentcode)

此位置的两字符大陆代码。

**`countryCode`**   [PFCountryCode](/services/playfab/api-references/c/pftypes/enums/pfcountrycode)

与该位置关联的国家/地区的两字符 ISO 3166-1 国家/地区代码。

**`latitude`**   double const\*<br />*may be nullptr*

（可选）玩家地理位置的纬度坐标。

**`longitude`**   double const\*<br />*may be nullptr*

（可选）玩家地理位置的经度坐标。

## 要求

**头文件：** PFSegmentsTypes.h

## 另请参阅

[PFSegmentsTypes 成员](/services/playfab/api-references/c/pfsegmentstypes/pfsegmentstypes_members)
