public RoutingEdge GetEdge(uint edgeId) { GeometricEdge edge = this._graph.GetEdge(edgeId); OsmSharp.Routing.Data.EdgeData edgeData = EdgeDataSerializer.Deserialize(edge.Data); OsmSharp.Routing.Network.Data.EdgeData data = new OsmSharp.Routing.Network.Data.EdgeData() { MetaId = this._edgeData[(long)edgeId], Distance = edgeData.Distance, Profile = edgeData.Profile }; return(new RoutingEdge(edge.Id, edge.From, edge.To, data, edge.DataInverted, edge.Shape)); }
public static uint[] Serialize(EdgeData data) { return(EdgeDataSerializer.Serialize(data.Distance, data.Profile)); }