You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@pszufe I would like to know if openstreetMapX has any internal function that allows to have more than a one edge with the same node id as source and target?
I mean let's say we have created 20 random paths as below. Could we associates new time and distance to them while keeping the previous edges in place? I mean like having an edge like 1 to 2 with time 10 and distance 100. And then having another edge 1 to 2 parallel to the previous one (with name start and end lable 1 and 2) but different time; like 15 second and 150 distance.
node_ids = collect(keys(m.nodes))
routes = Vector{Vector{Int}}()
for k in 1:20
a,b = rand(1:nv(m.g), 2)
route, route_time = OpenStreetMapX.shortest_route(m,m.n[a],m.n[b])
push!(routes, route)
end
The text was updated successfully, but these errors were encountered:
@pszufe I would like to know if openstreetMapX has any internal function that allows to have more than a one edge with the same node id as source and target?
I mean let's say we have created 20 random paths as below. Could we associates new time and distance to them while keeping the previous edges in place? I mean like having an edge like 1 to 2 with time 10 and distance 100. And then having another edge 1 to 2 parallel to the previous one (with name start and end lable 1 and 2) but different time; like 15 second and 150 distance.
The text was updated successfully, but these errors were encountered: