UrbanMapper Overview¶
UrbanMapper, in a Nutshell¶
UrbanMapper lets you link your data to spatial featuresโmatching, for example, traffic events to streetsโto enrich
locations with meaningful, location-based information. Formally, it defines a spatial enrichment function
\(f(X, Y) = X \bowtie Y\), where \(X\) represents urban layers (e.g., Streets, Sidewalks, Intersections and more)
and \(Y\) is a user-provided dataset (e.g., traffic events, sensor data). The operator \(\bowtie\) performs a spatial
join, enriching each feature in \(X\) with relevant attributes from \(Y\).
In short, UrbanMapper is a Python toolkit that enriches typically plain urban layers with datasets in a reproducible,
shareable, and easily updatable way using minimal code. For example, given traffic accident data and a streets layer
from OpenStreetMap, you can compute accidents per street with a
Scikit-Learnโstyle pipeline called the Urban Pipelineโin under 15 lines of code.
As your data evolves or team members want new analyses, you can share and update the Urban Pipeline like a trained
model, enabling others to run or extend the same workflow without rewriting code.
See a trailer-style video below to get a quick overview of UrbanMapper and its features:
Community Fork & Roadmap¶
UrbanMapper Community is the open, community-maintained fork of UrbanMapper. We keep alignment with upstream releases whenever possible while extending the toolkit with openly discussed features and a public roadmap.
If you want to shape the future of UrbanMapper, visit the Community Hub.
Urban Layers Currently Supported¶
UrbanMapper currently supports the following urban layers:
- Streets Roads โ Loads street road networks from OpenStreetMap (OSM) using OSMNx.
- Streets Intersections โ Loads street intersections from OSM using OSMNx.
- Sidewalks โ Loads sidewalks via Tile2Net using Deep Learning for automated mapping of pedestrian infrastructure from aerial imagery.
- Cross Walks โ Loads crosswalks via Tile2Net using Deep Learning for automated mapping of pedestrian infrastructure from aerial imagery.
- Cities' Features โ Loads OSM city features such as buildings, parks, bike lanes, etc., via OSMNx API.
- Region Neighborhoods โ Loads neighborhood boundaries from OSM using OSMNx Features module.
- Region Cities โ Loads city boundaries from OSM using OSMNx Features module.
- Region States โ Loads state boundaries from OSM using OSMNx Features module.
- Region Countries โ Loads country boundaries from OSM using OSMNx Features module.
- Subway/Tube โ Planned support for loading subway/tube networks.
More urban layers will be added in the future. Suggestions? Open an issue or pull request on our GitHub repository.
UrbanMapper โ Use Cases by Urban Layer¶
UrbanMapper is a flexible tool for addressing a wide range of urban analysis challenges. This non-exhaustive list of
practical use cases showcases its capabilities in transportation, safety, environment, demographics, and urban planning
scenarios based on each urban layer supported.
-
Analyse traffic congestion patterns
Load traffic sensor data, filter by peak hours, and enrich with road type information to visualise congestion onstreets roads. -
Optimise traffic signal timings
Use real-time traffic data to dynamically adjust signal timings onstreets roads, reducing congestion and improving flow. -
Map air pollution levels
Overlay air quality sensor data ontostreets roadsto identify high-pollution zones and target emissions reduction efforts.
-
Map taxi pickup/dropoff patterns
Analyse taxi activity to identify high-trafficstreet intersectionsfor optimising ride-sharing hubs or traffic flow. -
Analyse collision hotspots
Pinpointstreet intersectionswith frequent accidents to implement safety measures like better signage or signal adjustments. -
Evaluate vehicle wait times
Study wait times atstreet intersectionsto optimise traffic management and reduce delays.
-
Evaluate pedestrian safety
Map accident or complaint data tosidewalksto identify hazardous areas needing maintenance or infrastructure upgrades. -
Study the effect of sidewalk quality on pedestrian traffic
Correlate pedestrian volume withsidewalkconditions (e.g., width, surface quality) to prioritise improvements. -
Assess walkability in urban areas
Analysesidewalknetworks and proximity to amenities to calculate walkability scores for different zones.
-
Analyse collision hotspots around
cross walks
Map crash data tocross walksto identify accident-prone locations and improve pedestrian safety measures. -
Optimise pedestrian signal timings
Use pedestrian traffic data atcross walksto adjust signal timings for better flow and safety. -
Evaluate crosswalk accessibility
Assess the distribution and condition ofcross walksto ensure equitable access for all pedestrians.
-
Assess the impact of
bike laneson traffic flow
Study howbike lanesaffect vehicle speeds and accident rates on adjacent roads. -
Plan urban green spaces
Analyse the distribution ofparksto identify areas lacking accessible green spaces for future development. -
Analyse noise pollution near
building footprints
Overlay noise data ontobuilding footprintsto identify residential areas needing soundproofing or noise barriers.
๐๏ธ Neighborhoods:
- Evaluate public transportation coverage
Map transit stops to neighborhoods to identify underserved areas and plan service improvements. - Enrich data with demographic information
Overlay census data on neighborhoods to reveal population trends, income levels, or age distributions for targeted urban planning. - Analyse tourist greenery
Map remarkable trees or green spaces to neighborhoods to assess their impact on tourism and urban greening.
๐ Cities:
- Compare urban density
Use building footprints or population data to assess and compare density across cities for regional planning. - Analyse economic activity
Map business locations or employment data to cities to identify economic hubs and growth opportunities. - Study transportation connectivity
Analyse road or rail networks across cities to optimise infrastructure and reduce congestion.
๐ States:
- Study environmental impacts
Overlay climate or pollution data across states to compare conditions and plan statewide initiatives. - Analyse transportation networks
Map highway or rail networks across states to optimise connectivity and prioritise infrastructure investments. - Evaluate policy effectiveness
Compare demographic or economic data across states to assess the impact of state-level policies.
๐ Countries:
- Analyse global urban trends
Compare urbanization rates or infrastructure development across countries for international studies. - Map international trade routes
Overlay trade data onto countries to visualise global economic connections and dependencies. - Study climate resilience
Analyse temperature changes or natural disaster data across countries to assess vulnerability and plan mitigation strategies.
Where to Get Started¶
- Installation: Install UrbanMapper Community.
- Getting Started Step by Step: Create your first analysis step by step.
- Getting Started with Pipeline: Build your first pipeline-based analysis.
- Interactive Examples: Explore notebooks and runnable case studies.
- API Reference: Complete API documentation.
- Urban Mapper MCP ("Control Your Urban Analysis with LLMs")