Skip to content

Instantly share code, notes, and snippets.

View mcdlee's full-sized avatar

Sin-Di Lee mcdlee

View GitHub Profile
@buganini
buganini / fullwidth-addr-housenumber
Last active August 29, 2015 14:07
Find node/way with addr:housenumber which contains full width number
#python fullwidth-addr-housenumber.py taiwan-latest.osm.pbf
import sys
from imposm.parser import OSMParser
def hasFW(s):
import re
return re.match(ur'[\uFF10-\uFF19]', s)
class Handler():
def __init__(self):
@ramnathv
ramnathv / README.md
Last active November 6, 2022 21:58
Leaflet Routing Machine with rCharts

Leaflet Routing Machine Plugin

I saw the following issue posted to the rMaps github repo today.

I am new to using rMaps and leaflet. I would like to plot the route between two locations. The leaflet routing machine plugin allows us to do this (https://github.com/perliedman/leaflet-routing-machine). I am not quite sure how to use the functions addAssets() and setTemplate() to be able to use this plugin.

This was a good exercise for me to test whether these newly introduced mechanisms addAssets and setTemplate would allow one to easily extend the base leaflet binding in rMaps.

Let us start by creating the base map.