Skip to content

Commit

Permalink
fix echarging import
Browse files Browse the repository at this point in the history
  • Loading branch information
RudiThoeni committed Dec 19, 2024
1 parent b70844b commit 91e6b6a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
27 changes: 15 additions & 12 deletions DataModel/datamodels/DataModelsV2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -530,15 +530,21 @@ public static string GetTrustYouState(int trustyoustate)

public class ODHActivityPoiV2: ODHActivityPoiLinked
{
//Fits into Mapping
public new string? OutdooractiveID { get; set; }
public new string? OutdooractiveElevationID { get; set; }
public new string? SmgId { get; set; }
public new string? CustomId { get; set; }
public new string? OwnerRid { get; set; }
public new int? WayNumber { get; set; }
public new string? Number { get; set; }

//Properties to remove/rename/replace

public new int? AgeFrom { get; set; }
public new int? AgeTo { get; set; }
public new int? MaxSeatingCapacity { get; set; }
public new string? OutdooractiveID { get; set; }
public new string? OutdooractiveElevationID { get; set; }
public new string? SmgId { get; set; }
public new string? CustomId { get; set; }

public new bool? CopyrightChecked { get; set; }
public new string? Difficulty { get; set; }
public new string? Type { get; set; }
Expand All @@ -547,15 +553,16 @@ public class ODHActivityPoiV2: ODHActivityPoiLinked
public new bool SmgActive { get; set; }
public new HashSet<string>? AreaId { get; set; }
public new string? TourismorganizationId { get; set; }

public new double? AltitudeDifference { get; set; }
public new double? AltitudeHighestPoint { get; set; }
public new double? AltitudeLowestPoint { get; set; }
public new double? AltitudeSumUp { get; set; }
public new double? AltitudeSumDown { get; set; }

public new double? DistanceDuration { get; set; }
public new double? DistanceLength { get; set; }


public new bool? Highlight { get; set; }
public new bool? IsOpen { get; set; }
public new bool? IsPrepared { get; set; }
Expand All @@ -565,17 +572,13 @@ public class ODHActivityPoiV2: ODHActivityPoiLinked
public new bool? HasFreeEntrance { get; set; }
public new bool? LiftAvailable { get; set; }
public new bool? FeetClimb { get; set; }

public new bool? BikeTransport { get; set; }

public new string? OwnerRid { get; set; }

public new int? WayNumber { get; set; }

public new string? Number { get; set; }


//Related Content?
public new List<string>? ChildPoiIds { get; set; }
public new List<string>? MasterPoiIds { get; set; }

public new string? SyncSourceInterface { get; set; }
public new string? SyncUpdateMode { get; set; }
public new ICollection<string>? PoiServices { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion NINJA/Parser/ParseNinjaData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1073,7 +1073,7 @@ ODHTagLinked echargingstationtag

//Source, SyncSourceInterface
echargingpoi.Source = data.porigin.ToLower();
echargingpoi.SyncSourceInterface = data.pmetadata.provider.ToLower();
echargingpoi.SyncSourceInterface = !String.IsNullOrEmpty(data.pmetadata.provider) ? data.pmetadata.provider.ToLower() : data.porigin.ToLower();
echargingpoi.SyncUpdateMode = "partial";

//Hack spreadsheet
Expand Down

0 comments on commit 91e6b6a

Please sign in to comment.