The Intersection of Geocoding and Artwork with Open Road Map and Networkx | by Sejal Dua | Jan, 2024


Analyzing metropolis avenue maps utilizing Python plots and community metrics

Photograph by Logan Armstrong on Unsplash

I may go on for hours in an try to influence a gaggle of individuals why my metropolis (New York) is one of the best metropolis on the earth. Nevertheless, I’ve just lately realized that our notion of cities varies in line with our personal inside analysis standards. Cities may be evaluated throughout a large number of aspects, together with climate, meals scene, nightlife, points of interest, walkability, bike-ability, high quality of public transit, sports activities groups, entry to nature, and so on.

In a current dialogue with some colleagues and associates, some expressed that ease of transportation ought to be extra closely weighted than climate, whereas others countered that they may get previous a bitter wind chill so long as there have been loads of issues to do. Rating or tiering cities is a extremely subjective train, partially because of the ambiguity of the elements that ought to be thought-about, but additionally as a result of cities may be evaluated from totally different contexts: to stay in, to go to for a weekend, or to go to for per week. Personally, having lived in 4 cities in my life, I’ve discovered that even my very own rating of cities modifications barely as my priorities fluctuate. For instance, I rank Boston extra extremely as a spot to stay than to go to, whereas I rank Miami extra extremely as a spot to go to than to stay.

One main shortcoming that comes up as a part of the controversy is find out how to rank cities you’ve by no means been to earlier than. This explicit blocker motivated me to raised perceive cities from the angle of studying how they’re laid out on a map. All prime tier cities that I’ve come throughout have a physique of water (e.g. river, ocean, lake) in shut proximity to town heart, so I wished to confirm if it is a frequent function of all metropolitan cities. As for whether or not the downtown a part of a metropolis is often configured in a sq. grid or randomly organized, this query led me to leverage the Open Road Map API programmatically.

On this technical walkthrough, I’ll primarily current my findings of this exploration but additionally briefly clarify how I carried out the Python code.

Step 1: Geocoding

Leave a Reply

Your email address will not be published. Required fields are marked *