This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import imageio | |
import numpy as np | |
import librosa as lr | |
import matplotlib.pyplot as plt | |
from tqdm import tqdm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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() |