Skip to content

Instantly share code, notes, and snippets.

View ustroetz's full-sized avatar

Uli Stroetz ustroetz

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

OSM Route Validation for 'Empresa Pública Metropolitana de Transporte de pasajeros de Quito'

Route Overview

  • Total number of correctly extracted routes: 36
  • Total number of routes in OSM: 132

Errors

OSM Route Validation for 'paratransit_daladala'

Route Overview

  • Total number of correctly extracted routes: 317
  • Total number of routes in OSM: 320

Errors

{"type": "public_transport", "price": {"amount": 270, "currency": "EUR", "estimated": false}, "endDate": "2015-08-26T14:35:00+02:00", "duration": 1620, "provider": "vbb", "segments": [{"name": null, "color": "#B1BECC", "stops": [{"lat": 52.529976, "lng": 13.403069, "name": "Torstraße 109, 10119 Berlin", "datetime": "2015-08-26T14:08:00+02:00", "properties": null}, {"lat": 52.529778, "lng": 13.401397, "name": "U Rosenthaler Platz", "datetime": "2015-08-26T14:10:00+02:00", "properties": null}], "icon_url": "http://d1kdwmxr5eqxri.cloudfront.net/assets/vehicles/v0/walking-3c349c394bbbad68563756535afef59e.svg", "polyline": "kwr_IwxxpARCFnCDvB@`A@Z", "num_stops": 0, "short_name": null, "description": null, "travel_mode": "walking"}, {"name": "U8", "color": "#006BB2", "stops": [{"lat": 52.529778, "lng": 13.401397, "name": "U Rosenthaler Platz", "datetime": "2015-08-26T14:10:00+02:00", "properties": null}, {"lat": 52.525373, "lng": 13.405307, "name": "U Weinmeisterstr.", "datetime": "2015-08-26T14:11:00+02:00", "pro

OSM Route Validation for 'irtramma'

Route Overview

  • Total number of correctly extracted routes: 29
  • Total number of routes in OSM: 90

Errors

@ustroetz
ustroetz / otp_result.json
Created February 1, 2016 14:50
OTP response with Trip Update results
{
"requestParameters": {
"date": "02-01-2016",
"mode": "BUSISH,WALK",
"arriveBy": "true",
"wheelchair": "false",
"fromPlace": "stop SE Jackson & 21st (8225)::45.444827,-122.640491",
"toPlace": "stop SE Washington & 25th (6152)::45.442931,-122.636815",
"time": "6:09am",
"maxWalkDistance": "804.672",
@ustroetz
ustroetz / wiener_linien_bus.py
Created January 27, 2016 13:23
Script to download bus schedules from WienerLinien
from time import sleep
import requests
from splinter import Browser
import thread
import pdb
def download_pdf(browser, route_name, weekday, direction):
pdf_url = browser.find_link_by_partial_href('FileOutputName')['href']
response = requests.get(pdf_url)

OSM Route Validation for 'daladala'

Route Overview

  • Total number of correctly extracted routes: 285
  • Total number of routes in OSM: 320

Errors

  • Routes missing the opposite direction: 15
<!DOCTYPE html><html><head><title></title><meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<script src='https://api.mapbox.com/mapbox.js/v2.2.3/mapbox.js'></script>
<link href='https://api.mapbox.com/mapbox.js/v2.2.3/mapbox.css' rel='stylesheet' />
<style type='text/css'>
body {
font-family:'Helvetica';
background-size:100%;
margin:0;
padding:0;
@ustroetz
ustroetz / index.html
Created September 13, 2015 08:54
CartoDB.js + Mapbox.js
<!DOCTYPE html>
<html>
<head>
<title>Leaflet example | CartoDB.js</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" />
<style>
html,