Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/anvaka/index-large-cities

A simple indexer of road networks from OSM. Data for @anvaka/city-roads
https://github.com/anvaka/index-large-cities

Last synced: 3 months ago
JSON representation

A simple indexer of road networks from OSM. Data for @anvaka/city-roads

Awesome Lists containing this project

README

        

# City data

This repository contains script to download graphs of major cities, stored in the `cities.txt`
and save them into protocol buffers forma inside `data` folder.

The actual `.pbf` file can then be rendered by https://github.com/anvaka/city-roads

Note: Previously the `.pbf` file were stored inside this repository, but github removed them.
I assume they were too large.

## How to use it

One time setup:

```
git clone https://github.com/anvaka/index-large-cities
cd index-large-cities
npm install
```

Then you should be able to download all cities from `cities.txt` file by running

```
node index.js
```