Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tehran Bus Network Data

A graph representation of Tehran's bus network with 4,759 stations and 247 routes, covering BRT, regular, feeder, express, and special bus services.

Data Structure

The data follows a graph structure where each station is a node connected to neighboring stations. The key of each object is the station code.

Station Properties

Each station is represented by an object containing the following properties:

  • name: Station name in Persian
  • longitude: Longitude coordinate
  • latitude: Latitude coordinate
  • relations: List of connected stations with line and direction info
  • positions: List of positions for this station on each line and direction

Relations

Each relation represents a connection to a neighboring station on a specific line and direction:

"relations": [
  {
    "station": "4051",
    "line": 312,
    "is_forward": true
  }
]
Field Type Description
station string Station code of the neighboring station
line integer Line number this relation belongs to
is_forward boolean Direction of travel

Positions

Each position entry indicates where this station is located on a specific line and direction:

"positions": [
  {
    "line": 312,
    "is_forward": true,
    "position": 21
  }
]
Field Type Description
line integer Line number
is_forward boolean Direction of travel on this line
position integer Station order number on this line (starts from 1)

Direction

  • is_forward: true = Traveling in the main direction of the line (from origin to destination)
  • is_forward: false = Traveling in the reverse direction (from destination to origin)

Note: A station may only exist in one direction on a given line. For example, station 2904 (پایانه آزادی یافت آباد) only exists in the reverse direction (is_forward: false) on line 375, but not in the forward direction.

Line Types

Type Code Range Count Description
BRT Daytime 101-110 10 Main BRT lines with dedicated lanes
BRT Night 901-910 9 Night versions of BRT lines
BRT Special 121-171 18 Special BRT routes
Regular City Bus 201-399 155 Regular city bus lines covering neighborhoods and streets
Feeder Lines 400-451 34 Lines connecting residential areas to metro stations and terminals
Express Services 701 1 Limited-stop express service
Special Services 802-827 20 Special purpose lines (schools, hospitals, etc.)

License

This data is licensed under the Open Data Commons License.

About

Tehran bus network data as a graph structure.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages