segregation.network.get_osm_network

segregation.network.get_osm_network(geodataframe, maxdist=5000, quiet=True, **kwargs)[source]

Download a street network from OSM.

Parameters
geodataframegeopandas.GeoDataFrame

geopandas.GeoDataFrame of the study area. Coordinate system should be in WGS84

maxdistint

Total distance (in meters) of the network queries you may need. This is used to buffer the network to ensure theres enough to satisfy your largest query, otherwise there may be edge effects.

quiet: bool

If True, diagnostic messages from urbanaccess will be suppressed

**kwargsdict

additional kwargs passed through to urbanaccess.ua_network_from_bbox

Returns
pandana.Network

A pandana Network instance for use in accessibility calculations or spatial segregation measures that include a distance decay