This file contains hidden or 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 dash | |
from dash.dependencies import Input, Output | |
import dash_core_components as dcc | |
import dash_html_components as html | |
import pandas as pd | |
import urllib | |
import io | |
import flask |
This file contains hidden or 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 networkx as nx | |
import geopandas as gp | |
import osmnx as ox | |
import pandas as pd | |
from shapely.geometry import LineString | |
def convert_shp2graph(p, make_G_bidi = True, name='unamed'): | |
""" | |
Converts shapefile to routable networkx graph. | |