How should I interpret the content from a List<LocationModel> received from a player profile with more than one item? Is this ordered? Newest or oldest first? What does it mean exactly?
How should I interpret the content from a List<LocationModel> received from a player profile with more than one item? Is this ordered? Newest or oldest first? What does it mean exactly?
For some reason, the subject/question is not complete, it should read: "How should I interpret the content from a List<LocationModel>?"
Hi @PinkPointer,
>>How should I interpret the content from a List<LocationModel> received from a player profile with more than one item?
If there are multiple items in List<LocationModel> returned from a player profile, it generally means the player logged in different locations, each LocationModel represents a location’s info, like the following format:
"Locations": [
{
"ContinentCode": "AS",
"CountryCode": "SG",
"City": "Singapore",
"Latitude": 1.2931,
"Longitude": 103.8558
}
]
You should interpret it as a set of the player’s locations he used to log in.
>>Is this ordered? Newest or oldest first?
According to the public docs, I am not sure it’s ordered or not, or newest or oldest first. It may be chronological or alphabetical, or any other orders.
>>What does it mean exactly?
It means a set of the player’s locations he used to log in.
Thank you! It is only missing the answer about the order, I need that to know what should I display to the players, let's wait if someone else knows!
You can run a simple test to have a player log in at different locations and analyze the result to see if it's ordered or not.
@PinkPointer OK, it turns out that Locations in PlayerProfileModel only returns the last location (last login) for now. You can check this thread: https://community.playfab.com/questions/26091/current-location-in-playerprofilemodel-locations-l.html
3 People are following this question.