Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Implement visualize_pathways.py (#154)
visualize_pathways.py generates a Visualizes pathway graph for a given GTFS feed with Graphviz. Graph vertices are stations, platforms, entrances, generic nodes and boarding areas. Graph edges are pathways.
- Loading branch information
Showing
7 changed files
with
568 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
digraph D { | ||
node [ style=filled ] | ||
|
||
subgraph cluster_LR_TavHill { | ||
graph [ style=filled color=lightyellow label="LR_TavHill\nTaverners Hill" ] | ||
|
||
subgraph cluster_LR_TavHill_P1 { | ||
graph [ style=filled color=lightskyblue label="LR_TavHill_P1\nPlatform 1" ] | ||
|
||
LR_TavHill_P1_N [ label=LR_TavHill_P1_N color=springgreen shape=oval ] | ||
|
||
LR_TavHill_P1_M [ label=LR_TavHill_P1_M color=springgreen shape=oval ] | ||
|
||
LR_TavHill_P1_S [ label=LR_TavHill_P1_S color=springgreen shape=oval ] | ||
} | ||
|
||
subgraph cluster_LR_TavHill_P2 { | ||
graph [ style=filled color=lightskyblue label="LR_TavHill_P2\nPlatform 2" ] | ||
|
||
LR_TavHill_P2_N [ label=LR_TavHill_P2_N color=springgreen shape=oval ] | ||
|
||
LR_TavHill_P2_S [ label=LR_TavHill_P2_S color=springgreen shape=oval ] | ||
} | ||
|
||
LR_TavHill_EntranceLiftN [ label="LR_TavHill_EntranceLiftN\nParramatta Road" color=lightcoral shape=triangle ] | ||
|
||
LR_TavHill_EntranceStairsN [ label="LR_TavHill_EntranceStairsN\nParramatta Road" color=lightcoral shape=triangle ] | ||
|
||
LR_TavHill_EntranceLiftS [ label="LR_TavHill_EntranceLiftS\nParramatta Road" color=lightcoral shape=triangle ] | ||
|
||
LR_TavHill_EntranceStairsS [ label="LR_TavHill_EntranceStairsS\nParramatta Road" color=lightcoral shape=triangle ] | ||
|
||
LR_TavHill_BridgeN [ label=LR_TavHill_BridgeN color=lightgrey shape=diamond ] | ||
|
||
LR_TavHill_BridgeS [ label=LR_TavHill_BridgeS color=lightgrey shape=diamond ] | ||
} | ||
|
||
|
||
edge [ dir=both ] | ||
LR_TavHill_P2_N -> LR_TavHill_P2_S [ label=walkway ] | ||
|
||
edge [ dir=both ] | ||
LR_TavHill_P1_N -> LR_TavHill_P2_S [ label="walkway\nParramatta Road" ] | ||
|
||
edge [ dir=both ] | ||
LR_TavHill_P1_N -> LR_TavHill_P1_M [ label=walkway ] | ||
|
||
edge [ dir=both ] | ||
LR_TavHill_P1_M -> LR_TavHill_P1_S [ label=walkway ] | ||
|
||
edge [ dir=both ] | ||
LR_TavHill_P1_S -> LR_TavHill_BridgeN [ label=walkway ] | ||
|
||
edge [ dir=both ] | ||
LR_TavHill_BridgeN -> LR_TavHill_BridgeS [ label=walkway ] | ||
|
||
edge [ dir=both ] | ||
LR_TavHill_P1_M -> LR_TavHill_EntranceStairsN [ label=stairs ] | ||
|
||
edge [ dir=both ] | ||
LR_TavHill_BridgeN -> LR_TavHill_EntranceLiftN [ label="elevator\nLift to Street\nLift to Platform" ] | ||
|
||
edge [ dir=both ] | ||
LR_TavHill_BridgeS -> LR_TavHill_EntranceStairsS [ label=stairs ] | ||
|
||
edge [ dir=both ] | ||
LR_TavHill_BridgeS -> LR_TavHill_EntranceLiftS [ label="elevator\nLift to Street\nLift to Platform" ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
agency_id,agency_name,agency_url,agency_timezone,agency_lang,agency_phone | ||
SydneyLightRail,"Sydney Light Rail","http://transportnsw.info",Australia/Sydney,EN,"131500" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
level_id,level_index,level_name | ||
0,0,G | ||
1,1,1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
pathway_id,pathway_mode,from_stop_id,to_stop_id,is_bidirectional,traversal_time,stair_count,length,signposted_as,reversed_signposted_as | ||
LR_TavHill_Walk_P2,1,LR_TavHill_P2_N,LR_TavHill_P2_S,1,,,,, | ||
LR_TavHill_Walk_P1_P2,1,LR_TavHill_P1_N,LR_TavHill_P2_S,1,,,30,,Parramatta Road | ||
LR_TavHill_Walk_P1_N_M,1,LR_TavHill_P1_N,LR_TavHill_P1_M,1,,,,, | ||
LR_TavHill_Walk_P1_M_S,1,LR_TavHill_P1_M,LR_TavHill_P1_S,1,,,,, | ||
LR_TavHill_Walk_P1_Bridge,1,LR_TavHill_P1_S,LR_TavHill_BridgeN,1,,,,, | ||
LR_TavHill_Walk_Bridge,1,LR_TavHill_BridgeN,LR_TavHill_BridgeS,1,,,,, | ||
LR_TavHill_StairsN,2,LR_TavHill_P1_M,LR_TavHill_EntranceStairsN,1,32,41,,, | ||
LR_TavHill_LiftN,5,LR_TavHill_BridgeN,LR_TavHill_EntranceLiftN,1,,,,Lift to Street,Lift to Platform | ||
LR_TavHill_StairsS,2,LR_TavHill_BridgeS,LR_TavHill_EntranceStairsS,1,40,45,,, | ||
LR_TavHill_LiftS,5,LR_TavHill_BridgeS,LR_TavHill_EntranceLiftS,1,,,,Lift to Street,Lift to Platform |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
stop_id,stop_name,stop_lat,stop_lon,vehicle_type,wheelchair_boarding,location_type,parent_station,platform_code,level_id | ||
LR_TavHill,Taverners Hill,-33.889184, 151.145263,900,,1,,, | ||
LR_TavHill_P1,Platform 1,-33.889174,151.145208,,1,0,LR_TavHill,1,1 | ||
LR_TavHill_P2,Platform 2,-33.888672,151.145362,,1,0,LR_TavHill,2,1 | ||
LR_TavHill_EntranceLiftN,Parramatta Road,-33.889618,151.145126,,1,2,LR_TavHill,,0 | ||
LR_TavHill_EntranceStairsN,Parramatta Road,-33.889554,151.145100,,2,2,LR_TavHill,,0 | ||
LR_TavHill_EntranceLiftS,Parramatta Road,-33.889887, 151.145104,,1,2,LR_TavHill,,0 | ||
LR_TavHill_EntranceStairsS,Parramatta Road,-33.889904, 151.145054,,2,2,LR_TavHill,,0 | ||
LR_TavHill_BridgeN,,-33.889563,151.145183,,1,3,LR_TavHill,,1 | ||
LR_TavHill_BridgeS,,-33.889918,151.145149,,1,3,LR_TavHill,,1 | ||
LR_TavHill_P1_N,,-33.889063,151.145211,,1,4,LR_TavHill_P1,,1 | ||
LR_TavHill_P1_M,,-33.889312,151.145195,,1,4,LR_TavHill_P1,,1 | ||
LR_TavHill_P1_S,,-33.889481,151.145187,,1,4,LR_TavHill_P1,,1 | ||
LR_TavHill_P2_N,,-33.888478,151.145359,,1,4,LR_TavHill_P2,,1 | ||
LR_TavHill_P2_S,,-33.888898,151.145334,,1,4,LR_TavHill_P2,,1 |
Oops, something went wrong.