Giter VIP home page Giter VIP logo

yatayat's Introduction

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

yatayat's People

Contributors

prabhasp avatar neogeomat avatar strob avatar suress avatar poshan avatar samarpanrai avatar

Stargazers

Biplov Bhandari avatar

Watchers

James Cloos avatar Biplov Bhandari 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.