private Location ParsePlayerCoords(LinkData l)
 {
     Location loc = new Location();
     loc.X = l.AvatarPosition[0] * METER_TO_INCH; //west to east
     loc.Y = l.AvatarPosition[2] * METER_TO_INCH; //north to south
     loc.Z = -l.AvatarPosition[1] * METER_TO_INCH; //altitude
     if (l.Context.ShardId < 10000)
     {
         loc.World_id = Convert.ToInt32(l.Context.ShardId);
     }
     else { loc.World_id = 0; }
     loc.Map_id = Convert.ToInt32(l.Context.MapId);
     return loc;
 }
 private PlayerDetails ParsePlayerInfo(LinkData l)
 {
     PlayerDetails player = new PlayerDetails();
     if (!string.IsNullOrEmpty(l.Identity))
         player = JsonConvert.DeserializeObject<PlayerDetails>(l.Identity);
     return player;
 }