Skip to content

Shortest Path as Time instead of Distance #58

@cojow

Description

@cojow

Hey,

I'm trying to create a network skim from a gmns network using path4GMNS, specifically using the shortest path between two nodes function.
Currently this function gives the distance and the path sequence. You also have a function that computes time-dependent link travel times. Is there a way that the shortest path function can give out the travel time in minutes instead of the distance?

I've already made a branch of the code where I compute a network skim using a modified find_shortest_path, but I have to convert the length values into fftt before I read it into the network, and then change them back afterwards. This is able to get me a a network skim in minutes.
But when I do the same conversion to the network after it is read into path4gmns the engine gives our travel times in miles, even though the lengths in the network have been changed to the same values as fftt.

Any guidance or assistance would be appreciated. Thanks.

Here's a link to my branch for reference.
https://github.com/cojow/Path4GMNS_network_skimming.git

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or requestgood first issueGood for newcomershelp wantedExtra attention is needed

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions