Git Product home page Git Product logo

transnet's Introduction

TransNet

TransNet is tool to analyze centralities in the public transit network of Graz, Austria. It loads data from files dumped from OpenStreetMap and schedule information from the Verbundlinie, and uses Python (and the networkx library) to construct a public transit network consisting of stops and connections between them. It then calculates several centrality measures (closeness centrality, geographical closeness centrality and traveltime centrality) on the network and identifies the most central nodes based on these measures.

The data is available in the data folder. The schedule information was obtained manually from the Verbundlinie (CC-BY). The rest of the data was obtained from the OpenStreetMap Overpass Turbo API (© OpenStreetMap contributors, ODbL). The data was obtained by first selecting an area that includes Graz and some of its surroundings and then running the following queries:

Tramway network (data/osm_tram_traveltimes.xml)

<union>
<query type="relation">
  <has-kv k="type" v="route"/>
  <has-kv k="route" v="tram"/>
  <has-kv k="alternate" v="no"/>
  <bbox-query {{bbox}}/>
  </query>
  
<query type="node">
  <has-kv k="public_transport" v="stop_position"/>
  <has-kv k="railway" v="tram_stop"/>
  <bbox-query {{bbox}}/>
</query>
</union>

<print mode="meta"/>

Urban Bus Network (data/osm_bus_traveltimes.xml)


<union>
<query type="node">
  <has-kv k="highway" v="bus_stop"/>
  <bbox-query {{bbox}}/>
</query>
  
<query type="node">
    <has-kv k="railway" v="tram_stop"/>
  <bbox-query {{bbox}}/>
</query>
  
<query type="node">
    <has-kv k="public_transport" v="platform"/>
  <bbox-query {{bbox}}/>
</query>
  
  
<query type="relation">
  <has-kv k="type" v="route"/>
  <has-kv k="route" v="bus"/>
  <has-kv k="alternate" v="no"/>
  <bbox-query {{bbox}}/>
</query> 

<query type="relation">
  <has-kv k="type" v="route"/>
  <has-kv k="route" v="tram"/>
  <has-kv k="alternate" v="no"/>
  <bbox-query {{bbox}}/>
  </query> 

</union>

<print mode="meta"/>

Suburban Train Network (data/osm_sbahn_traveltimes.xml)

This data set was initialized from an API query but then mostly compiled by hand. In this way, only train stops in fare zone 101 are included, and the stop names are equal to the names of tram and bus stops.

Remarks

The schedule data is valid for a workday between 7-8 am. Accordingly, the network consists of all lines operating in these hours. The network is furthermore restricted to fare zone 101 (Graz and surroundings) and excludes suburban buses ("Regionalbusse") as special rules apply for these lines for boarding and alighting.

transnet's People

Contributors

lamda avatar flowolf avatar

Stargazers

AngryMe avatar  avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.