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 streamlit as st | |
import pandas as pd | |
import numpy as np | |
import altair as alt | |
import pydeck as pdk | |
import time | |
# LOADING DATA | |
DATE_TIME = "date/time" |
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 streamlit as st | |
import numpy as np | |
# Interactive Streamlit elements, like these sliders, return their value. | |
# This gives you an extremely simple interaction model. | |
iterations = st.sidebar.slider("Level of detail", 2, 20, 10, 1) | |
separation = st.sidebar.slider("Separation", 0.7, 2.0, 0.7885) | |
m, n, s = 960, 640, 400 | |
x = np.linspace(-m / s, m / s, num=m).reshape((1, m)) |
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 requests | |
import lxml | |
def get_coordinate_of_address(address): | |
url = 'http://geocode.csis.u-tokyo.ac.jp/cgi-bin/simple_geocode.cgi?charset=UTF8&addr={}'.format(address) | |
res = requests.get(url) | |
res_obj = lxml.etree.fromstring(bytes(res.text, encoding='utf8')) | |
lng = res_obj.xpath('//longitude/text()')[0] | |
lat = res_obj.xpath('//latitude/text()')[0] |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder