Giter Club home page Giter Club logo

osm-poi's Introduction

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.

Two example files are provided: a grid and a polygon over the city of Padova. The grid has been generated using the GeoJSON Grid Creator 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 <path_with_filename> --label <label_name> Query all the nodes and ways from OSM within the polygons included in the file passed. args:
  • path
  • --label (optional)
filter osm_poi filter <path_with_filename> 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.