Tilerama
Jump to navigation
Jump to search
Tilerama
| Tilerama | |
|---|---|
| License | MIT |
| Status | Active |
| Languages | TypeScript, JavaScript |
| Website | https://github.com/ciospettw/Tilerama |
| Package | https://www.npmjs.com/package/tilerama |
| Summary | TypeScript-first toolkit for downloading, cleaning, routing, and plotting OpenStreetMap street networks using Graphology. |
Tilerama is a Node.js/TypeScript package to retrieve, model, analyze, and visualize street networks from OpenStreetMap.
OSM data can be natively retrieved via the Overpass API and stored in a graphology MultiDirectedGraph.
Tilerama is inspired by OSMnx-style workflows, but targets the JavaScript/TypeScript ecosystem.
Tilerama is useful for...
- Downloading street networks for a bbox, point+distance, place/address, or polygon
- Cleaning/simplifying graphs and clipping them to an area
- Routing (shortest paths) and basic network statistics
- Exporting to GeoJSON for mapping
Install
npm install tilerama
Examples
Code example
Download a drivable street network for a bbox (bbox order is [north, south, east, west]):
import { graph_from_bbox } from "tilerama";
const bbox: [number, number, number, number] = [37.80, 37.78, -122.40, -122.43];
const G = await graph_from_bbox(bbox, "drive", true);
Documentation
Project documentation and examples are maintained in the GitHub repository and npm package page.
External links
- GitHub repository: https://github.com/ciospettw/Tilerama
- npm package: https://www.npmjs.com/package/tilerama