Skip to content

Instantly share code, notes, and snippets.

import os
import sys
import imageio
import numpy as np
import librosa as lr
import matplotlib.pyplot as plt
from tqdm import tqdm
@danstowell
danstowell / reversegeocoding.py
Created October 20, 2012 13:44 — forked from tommorris/post.rb
simplified version of reverse geocode parse
#!/bin/env python
# python port by Dan Stowell, of OSM reverse geocoding by Tom Morris
import json
import urllib2
def latlon_to_label(latitude, longitude):
url = "http://nominatim.openstreetmap.org/reverse?format=json&lat=%f&lon=%f&zoom=18&addressdetails=1" % (latitude, longitude)
data = urllib2.urlopen(url).read()