cmu-lib / bridgesofPittsburgh

Code and documents associated with the Bridges of Pittsburgh DH project at CMU
7 stars 2 forks source link

Weight edges by distance of termini #35

Closed mdlincoln closed 6 years ago

mdlincoln commented 6 years ago

Oddly, while every OSM node has a lat and lon, not every edge produced by the native graph transform function in the osmar package contains a weight, so we may need to manually calculate these

mdlincoln commented 6 years ago

Calculate all edge distances after rewiring, based on lat-lon of terminal nodes. Optionally introduce a conversion coefficient to get an approximation of real-world meters