Skip to content

Instantly share code, notes, and snippets.

View planemad's full-sized avatar

Arun Ganesh planemad

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/*
Node script to parse railway station string from Indian Railways Enquiry into a CSV
Author: Arun Ganesh
License: CC0
*/
// Store station list string from https://enquiry.indianrail.gov.in/ntes/js/stnCodesWithNamesArrayStr.js
@planemad
planemad / README.md
Last active November 27, 2018 11:18
Ukraine Worldview OpenStreetMap Tiles

Demo of how to use Mapbox GL to adjust the default OpenStreetMap boundaries using overlay layers for a Ukraine worldview which includes Crimea.

Forked from corrected boundary demo for India

@planemad
planemad / README.md
Last active November 25, 2018 10:29
OpenStreetMap India Mapbox GL Map

Demo of how to create an OpenStreetMap slippy map with custom disputed boundaries with Mapbox GL JS.

Features

  • Completely free and no API key required

How it works

A custom Mapbox GL map style is used to define the basemap and custom boundaries to overlay:

<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title>Add a WMS source</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.50.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.50.0/mapbox-gl.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
@planemad
planemad / .block
Last active November 27, 2018 11:45
OpenStreetMap GL Demo
license: gpl-3.0

Playing with large CSV files

Consider a very very large CSV (big.csv) file with more than a million rows. Knowing some bash and postgres can now make your life easy :D

Using bash

Preview start of file

head big.csv

Map QA Issues Specification [DRAFT]

CSV schema to represent data quality issues on a map. A QA project is a collection of data quality issues generated from a source or queried live from OSM.

project_metadata.csv

Project information and status

  • QA Category: Warning | Error
  • Project name
  • Project description
  • Difficulty
  • Priority