Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/peterampazzo/osm-poi
Dump Point of Interest (POIs) from OpenStreetMap
https://github.com/peterampazzo/osm-poi
land-use openstreetmap pointofinterest
Last synced: 13 days ago
JSON representation
Dump Point of Interest (POIs) from OpenStreetMap
- Host: GitHub
- URL: https://github.com/peterampazzo/osm-poi
- Owner: peterampazzo
- Created: 2021-12-13T20:50:20.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-19T19:41:38.000Z (about 3 years ago)
- Last Synced: 2023-03-22T19:10:27.534Z (almost 2 years ago)
- Topics: land-use, openstreetmap, pointofinterest
- Language: Python
- Homepage:
- Size: 1.22 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OpenStreetMap POIs
This Python package allows to query OpenStreetMap API using OverPy and retrieve all nodes and ways included in a area. It is possible to load a list of polygons using GeoPandas (JSON, GeoJSON, Shapefile are supported) and loop through them.
The goal is to associate for every area a list of POIs retrived from OpenStreetMap.
The query will be performed on the bounding box built around the given polygon.
![](bounding-box.png)
Two example files are provided: a [grid](https://github.com/peterampazzo/osm-poi/blob/main/example/grid.json) and a [polygon](https://github.com/peterampazzo/osm-poi/blob/main/example/polygon.geojson) over the city of Padova.
The grid has been generated using the [GeoJSON Grid Creator](https://cityofaustin.github.io/geojson-grid/) developed by the city of Austin.## Installation
```
virtualenv env
source env/bin/activate
pip install -e ".[devel]"
```## Quick Start
Two profile currently supported are `query` and `filter`.
| **profile** | **command** | **description** |
|---|---|---|
| query | `osm_poi query --label ` | Query all the nodes and ways from OSM within the polygons included in the file passed. _args_:
- `path`
- `--label` (optional)
| filter | `osm_poi filter ` | Remove keys if they have been removed from the two main lists (`-nodes.json` and `-ways.json`) generated from the previous step. _args_:
- `path`
To test the behaviour an example file is provided:
```
# grid.json
osm_poi query example/grid.json
# polygon
osm_poi query example/polygon.geojson
```