Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/frodrigo/pbf2redis
Experiment on switching from SQL to Redis to request OpenStreetMap topological data
https://github.com/frodrigo/pbf2redis
openstreetmap osmose redis tile38
Last synced: 3 days ago
JSON representation
Experiment on switching from SQL to Redis to request OpenStreetMap topological data
- Host: GitHub
- URL: https://github.com/frodrigo/pbf2redis
- Owner: frodrigo
- License: gpl-3.0
- Created: 2017-09-03T19:35:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-03T20:13:17.000Z (over 7 years ago)
- Last Synced: 2024-11-19T13:45:23.922Z (2 months ago)
- Topics: openstreetmap, osmose, redis, tile38
- Language: Ruby
- Size: 17.6 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pbf2redis
Experiment on switching from SQL to Redis to request OpenStreetMap topological data.This the source code of this article: https://medium.com/@frederic.rodrigo/pbf2redis-eae7fcada735
# Recipie
Intall ruby, then install gem:
```
gem install redis redic
```Install Redis and Tile38 (optional).
Download a, small, .osm.pbf file from http://download.geofabrik.de/
Load OpenStreetMap data into Redis and Tile38
```
ruby pbf2redis.rb ile-de-france-latest.osm.pbf
```Run test queries
```
time ruby query1.rb
time ruby query2.0.rb
time ruby query2.1.rb
time ruby query2.2.rb
time ruby query2-spatial.rb
```