Skip to content

Instantly share code, notes, and snippets.

View mvexel's full-sized avatar

Martijn van Exel mvexel

View GitHub Profile
@mvexel
mvexel / gpxmatch.py
Last active August 22, 2016 18:12
gpxmatch.py
#!/usr/bin/env python
# This hacky script takes a GPX file and compares it to OSM ways in
# its surroundings. It looks for points that are not close to an
# OSM way. If it finds any, it will add them to an output GPX file.
#
# Good:
#
# * It works
#
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mvexel
mvexel / sotm-16-workshops.md
Last active July 19, 2016 20:47
sotm-16-workshops.md

Make maps more ​interactive​ with the magic of a geocoding search box

Pigott 101, 9am

Rhonda Glennon, Katie Kowalsky, Diana Shkolnikov

Interactive maps are everywhere these days, and geocoding powers the interactive map experience. Geocoding turns addresses and place names into geographic coordinates. With coordinates of places revealed, the map can pan and zoom to the right location, drop markers, and draw outlines of geographic areas. In this workshop, you'll be learning how to build an interactive map that contains a simple, yet powerful, search box powered by the Mapzen Search API, which is an open-source geocoding service built on open data sets, including OpenStreetMap.

In this hands-on session, you'll learn:

  • An overview of geocoding and examples of it
@mvexel
mvexel / overpass.geojson
Created May 5, 2016 21:21 — forked from anonymous/overpass.geojson
data exported by overpass turbo
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mvexel
mvexel / qgis-patch-error.txt
Created May 5, 2016 20:42
qgis-patch-error.txt
patching file src/server/qgswfsserver.cpp
can't find file to patch at input line 307
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--
|2.6.4
|
|From 69faab9b8b9361e0e1fcea8390fc8a11fc2c24ca Mon Sep 17 00:00:00 2001
|From: Even Rouault <even.rouault@spatialys.com>
relation_id name overpass_id
60759 Vermont 3600060759
61315 Massachusetts 3600061315
67213 New Hampshire 3600067213
161646 Arkansas 3600161646
161650 Iowa 3600161650
161638 Missouri 3600161638
161655 Kentucky 3600161655
161838 Tennessee 3600161838
161950 Alabama 3600161950
We couldn’t find that file to show.
@mvexel
mvexel / geojson2maproulette_readme.md
Last active May 9, 2016 09:31
geojson2maproulette_readme.md

geojson2maproulette

Create a MapRoulette challenge from a GeoJSON file or gist with little effort!

Let me explain how this works with an example. OSM user bitnapper proposed a challenge for adding multilingual names to places in Ireland a while ago. If I understand her or his request correctly, these are OSM place nodes that have a name tag but perhaps not a name:ga tag for the Gaelic name. (I am making the assumption that name will always hold the English name. That may not be accurate.) These nodes can be isolated with an Overpass Turbo query like so:

Untitled<script async src="//embedr.flickr.com/assets/client-code.js" charset="utf-8"></script>

Overpass Turbo lets you save the result as a GeoJSON gist easily using the export function: