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

# PFLocationModel

> PFLocationModel data model.

PFLocationModel data model.

## Syntax

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

### Members

**`city`**   const char\*\
*is null-terminated*

(Optional) City name.

**`continentCode`**   [PFContinentCode](/services/playfab/api-references/c/pftypes/enums/pfcontinentcode) const\*\
*may be nullptr*

(Optional) The two-character continent code for this location.

**`countryCode`**   [PFCountryCode](/services/playfab/api-references/c/pftypes/enums/pfcountrycode) const\*\
*may be nullptr*

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

**`latitude`**   double const\*\
*may be nullptr*

(Optional) Latitude coordinate of the geographic location.

**`longitude`**   double const\*\
*may be nullptr*

(Optional) Longitude coordinate of the geographic location.

## Requirements

**Header:** PFTypes.h

## See also

[PFTypes members](/services/playfab/api-references/c/pftypes/pftypes_members)


## Related topics

- [PFPlayerProfileModel](/services/playfab/api-references/c/pftypes/structs/pfplayerprofilemodel.md)
- [Services C API overview - PFTypes.h](/services/playfab/api-references/c/pftypes/pftypes_members.md)
- [PFSegmentsPlayerLocation](/services/playfab/api-references/c/pfsegmentstypes/structs/pfsegmentsplayerlocation.md)
- [XR-052 User state, title-save location, and roaming](/publishing/certification/xr/xr-052.md)
- [Services C API overview - PFSegmentsTypes.h](/services/playfab/api-references/c/pfsegmentstypes/pfsegmentstypes_members.md)
