Skip to main content

UrbanPy

UrbanPy
Get the code

Language

Python

Tool Type

Algorithm

License

GNU General Public License version 3

Version

0.2.2

About the tool Responsible

Inter-American Development Bank

UrbanPy
What is it?

UrbanPy is a package of analytical functions designed to simplify urban management, allowing you to obtain geographic boundaries of cities, estimate populations, locate places of interest and calculate travel times. Developed in collaboration with the Universidad del PacĂ­fico and the Municipality of Lima, it uses global open databases to offer accurate and efficient solutions in urban planning. In response to the challenges posed by the COVID-19 pandemic, UrbanPy has become a key tool to address issues of accessibility to essential services, such as health. It facilitates the identification of areas where the implementation of services is urgently required, allowing metropolitan governments to make informed decisions for effective distribution of resources. Its ability to integrate specific local data makes it an adaptable and relevant solution for urban planners in Latin America and the Caribbean.

What problems does it solve?

Urban planning and research often requires extensive data collection and analysis, which can be time-consuming and complex. There is a need for a tool that can quickly and accurately process high volumes of urban data, providing information on accessibility and other urban metrics. The lack of such tools can hinder effective planning and research, making it difficult to understand and address urban challenges.

How does the tool work?

With UrbanPy you can automatically download and map points of interest (pharmacies, banks, schools, transport stations, etc.) and estimate travel distance from each area of the city to the closest service point: Data Download: Retrieves open-source spatial data such as city limits, points of interest, and population estimates updated to 2020, with high spatial resolution and global coverage. Spatial Unit Analysis: Allows for the use of grid systems or administrative boundaries as spatial units. Routing API Integration: Calculates origin-destination matrices for various transportation modes. Travel Time Computation: Determines travel times from spatial units to the closest facilities. Data Visualization: Provides tools for mapping and visualizing urban metrics and results.

Open standards

Built with Python, leveraging its robust geospatial ecosystem. Utilizes libraries like OSMNX and Geopandas for spatial operations and data management. Integrates routing capabilities, possibly requiring API keys for services like OSRM. Includes modules for interactive choropleth maps using plotting and other visualization libraries. Supports various data formats including shapefiles and tables for output.

Sector
Urban Development and Housing
Functionality
Geolocation
Database management
Sustainable development goals
Sustainable cities and economies
Certifications
Digital Public Good
Toolkits
Topic - Municipalities
Topic - Open urban planning
IDB Tools
hands
Get the code for this project
Get the code

Connect with the Development Code team and discover how our carefully curated open source tools can support your institution in Latin America and the Caribbean. Contact us to explore solutions, resolve implementation issues, share reuse successes or present a new tool. Write to [email protected]

Contact us
Lima Pharmacy Access Map Lima Pharmacy Access Map

This image is a geographic map showing the access time to pharmacies in Lima, with color coding indicating time intervals from less than 5 minutes to more than 120.

Simple Plot of Buenos Aires, Argentina Simple Plot of Buenos Aires, Argentina

This image displays a simple plot of Buenos Aires, Argentina, likely representing a geographic boundary or shape, generated using Python's matplotlib and a geospatial library.

Peru Population Data DataFrame Output Peru Population Data DataFrame Output

This image shows the output of a Python command, displaying a dataframe with columns for latitude, longitude, and population data for Peru for the years 2015 and 2020.

Use case in education (Brazil)

Pilot project with UrbanPy for school planning in Brazil.

See more
Implementation workshop

Code4Dev Webinar: Learn how to implement the Urbanpy tool

See more
IDB Project RG-T3266: Technological Innovations in Urban Planning and Transit

Project that promotes the use of digital platforms to improve urban development and mobility in cities in Latin America and the Caribbean.

See more
Article: UrbanPy for urban accessibility analysis

Presentation of UrbanPy, a tool that measures gaps in access to urban services.

See more
Article: Open Urban Planning Toolbox

IDB open tools for urban planning in the region.

See more
Article: Big Data at the service of cities

Analysis of the use of big data to improve public services and urban planning, highlighting the case of Manta, Ecuador.

See more
Pavimentados
Optimizing road maintenance and signaling with computer vision.

Transport
Geolocation
Image processing
SunScan IDB
Facilitating the evaluation of rooftop solar potential with advanced and accessible technology.

Energy
Geolocation
Image processing
URSA
Facilitating urban planning with accessible data.

Urban Development and Housing
Simulators
Geolocation
MAIIA
Identifying informal settlements with artificial intelligence.

Urban Development and Housing
Image processing
Urbantrips
Turning transportation data into complex analysis to improve management.

Transport
Geolocation
see all tools
hands
Deepen your knowledge on the implementation of tools in the public sector with our courses, guides and many other resources.
Be part of the community
Jump back to top