> ## 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 data model.

PFSegmentsPlayerLocation data model.

## Syntax

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

### Members

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

(Optional) City of the player's geographic location.

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

The two-character continent code for this location.

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

The two-character ISO 3166-1 country code for the country associated with the location.

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

(Optional) Latitude coordinate of the player's geographic location.

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

(Optional) Longitude coordinate of the player's geographic location.

## Requirements

**Header:** PFSegmentsTypes.h

## See also

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


## Related topics

- [PFSegmentsPlayerLocationDictionaryEntry](/services/playfab/api-references/c/pfsegmentstypes/structs/pfsegmentsplayerlocationdictionaryentry.md)
- [Services C API overview - PFSegmentsTypes.h](/services/playfab/api-references/c/pfsegmentstypes/pfsegmentstypes_members.md)
- [Player Segment configuration](/services/playfab/player-progression/player-data/player-segment-configuration.md)
- [PFSegmentsPlayerProfile](/services/playfab/api-references/c/pfsegmentstypes/structs/pfsegmentsplayerprofile.md)
- [Segment Configuration](/services/playfab/live-service-management/game-configuration/segmentation/segmentation-configuration.md)
