Skip to main content

The Urban Toolkit (UTK)

While cities around the world are looking for smart ways to channel new advances in data collection, management, and analysis to address their day-to-day problems, the complex nature of urban issues and the overwhelming amount of available structured and unstructured data have posed significant challenges in translating these efforts into actionable insights. In our paper The Urban Toolkit: A Grammar-based Framework for Urban Visual Analytics, we present the Urban Toolkit, a flexible and extensible visualization framework that enables the easy authoring of web-based visualizations through a new high-level grammar specifically built with common urban use cases in mind. In order to facilitate the integration and visualization of different urban data, we also propose the concept of knots to merge thematic and physical urban layers. This repository presents the source code of the framework as well as documentation containing a gallery of examples, an in-depth description of the grammar and the steps needed to run the code.

For a quick getting starter document and tutorials, visit: urbantk.org


System Requirements

Running

  • docker-compose up (at the root of the project)

Architecture

UTK follows a microsservice architecture where each functionality is offered by one container. Please refer to the README.md of each service for more details:

Configuration

All data loaded into the system must be under data/ (at the root of the project).

You can modify the DATA_FOLDER environment variable on docker-compose.yml to change the loaded folder.

Grammar

For more details on the grammar refer to grammar.md.


Each example can be downloaded and executed off the shelf, but jupyter notebooks and the grammar specifications are also provided if one wants to build them from "scratch".

The jupyter notebooks must be placed inside jupyterAPI. Please refer to jupyterAPI for more details.

(1) Loading downtown Manhattan

Description: loading water, parks, street network and buildings for downtown Manhattan. Also raytracing is used for shadow simulation.

Data: download or jupyter notebook

Grammar: specification

To visualize the shadow data it is necessary to change the renderStyle of buildings.json to SMOOTH_COLOR_MAP_TEX and renderStyle of surface.json to SMOOTH_COLOR_MAP

(2) What if analysis downtown Chicago

Description" loading water, parks, street network, and buildings for downtown Chicago. Also, raytracing is used for shadow simulation and for building a what-if scenario considering the removal of two buildings.

Data download or jupyter notebook

Grammar: specification

To visualize the shadow data it is necessary to change the renderStyle of buildings.json and buildings_m.json to SMOOTH_COLOR_MAP_TEX and renderStyle of surface.json to SMOOTH_COLOR_MAP

(3) Multiple datasets in downtown NYC

Description" loading water, parks, street network, and buildings for downtown NYC. Using multiple datasets aggregated by zip code to create a parallel coordinates chart.

Data download or jupyter notebook

Grammar: specification

To visualize the shadow data it is necessary to change the renderStyle of buildings.json and buildings_m.json to SMOOTH_COLOR_MAP_TEX and renderStyle of surface.json to SMOOTH_COLOR_MAP

Metadata

Release files for urbantk 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for urbantk 0.0.1
File Size Uploaded Provenance
urbantk-0.0.1.tar.gz 3.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for urbantk 0.0.1
File Interpreter ABI Platform
urbantk-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.4 kB

Release files / urbantk-0.0.1.tar.gz

Download URL urbantk-0.0.1.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e015921d8bc18727ebcd0938c9c10dfa2dcf5d989bd7e7c7c26075b5e6e139d2
BLAKE2b-256 checksum
How to use checksums
ea662f1254ee52e6f0764bd65d618d7079b5a77849a837c4dec76f1c32333b27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.6

Release files / urbantk-0.0.1-py3-none-any.whl

Download URL urbantk-0.0.1-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fdf40948d105946e03ace32bc829fe54637bd29f85a26823d4703a99960d5e4a
BLAKE2b-256 checksum
How to use checksums
3f9105811f9a3d10dcdc4ea4f66079fe6fe5504ebad66008229d5b2cd03b1fee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.6

Security for urbantk 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page