public void AddLine(ushort lineId) { if (!LinesPassing.Contains(lineId)) { LinesPassing.Add(lineId); } }
public string ToJson() => $@"{{""name"":""{name}"",""linesPassingCount"":{ LinesPassing.Count}, ""stops"":{{{string.Join(",", stopsWithWorldPos.Select(x => $@"""{x.Key}"":[{x.Value.x},{x.Value.y},{x.Value.z}]").ToArray())}}}, ""stopId"":{stopId},""linesPassing"":[{string.Join(",", LinesPassing.Select(x => x.ToString()).ToArray())}], ""id"":{Id},""service"":""{service}"",""districtId"":{districtId},""districtName"":""{districtName}""}}";