Skip to content

Poshan/yatayat

This branch is 5 commits ahead of, 24 commits behind neogeomat/yatayat:gh-pages.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jan 26, 2014
b554894 · Jan 26, 2014
Jun 14, 2013
Aug 18, 2013
Oct 24, 2013
Oct 24, 2013
Jan 14, 2014
Dec 20, 2013
Dec 20, 2013
Oct 24, 2013
Dec 20, 2013
Dec 20, 2013
Oct 26, 2013
Dec 30, 2013
Dec 20, 2013
Oct 26, 2013
Dec 20, 2013
Oct 26, 2013
Oct 26, 2013
Oct 26, 2013
Dec 8, 2013
Dec 20, 2013
Dec 20, 2013
Oct 26, 2013
Oct 26, 2013
Dec 20, 2013
Jan 21, 2014
Dec 20, 2013
Dec 20, 2013
Dec 20, 2013
Dec 20, 2013
Oct 26, 2013
Oct 26, 2013
Oct 26, 2013
Jan 26, 2014
Oct 26, 2013
Oct 26, 2013
Dec 20, 2013
Aug 18, 2013
Oct 26, 2013
Oct 26, 2013
Dec 20, 2013
Dec 20, 2013
Jan 22, 2014
Dec 20, 2013
Oct 26, 2013
Jan 26, 2014

Repository files navigation

Yatayat

Kathmandu Public Transport

Openstreetmap-based point-to-point routing, developed for Kathmandu.

HACKING / DEPLOYING

submodules

yatayat uses a kdtree implementation from @ubilabs on github; to use it you will need to run

% git submodule init
% git submodule update

inside your cloned repository

config

config.js pulls from a overpass-api directly; to develop locally, you can symlink config.local.js to config.js, but please be careful not to commit your symlinked file

% ln -s config.local.js config.js

Data Model

OSM Data is transformed into Routes, Stops, and Segments:

Route:

  • id
  • name
  • ref // route number
  • transport // type of transport; pulled from tag.type
  • stops: [] // are ordered
  • stopDict: {} // indexed by id
  • segments: []
  • tag: {}

Stop:

  • id
  • name
  • lat
  • lng
  • tag: {}

Segment:

  • listOfLatLng: [(lat,lng), ...]
  • tag: {}

CLI

data quality.

These make use of nodejs. On Debian-based systems, all external dependencies can be installed via APT:

% apt-get install nodejs node-jquery node-underscore

Elsewhere, you can try your luck with NPM:

% npm install jquery underscore docopt

Then, you can run:

% nodejs cli_dataquality.js transit.experimental.xml

Additionally, the "datasync.py" python wrapper downloads the latest route information from OSM through overpass, checks for quality issues, and depending on the results of cli_dataquality, can e-mail relevant parties or else commit the new info into git.

GTFS

% nodejs dump_gtfs.js transit.experimental.xml

About

Public Transport Routing in Kathmandu Valley

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 87.5%
  • CSS 11.6%
  • Python 0.9%