Skip to content

Scrape features from OpenStreetMaps' API and return a geopandas GeoDataFrame

License

Notifications You must be signed in to change notification settings

PhilaController/osm2gpd

Repository files navigation

osm2gpd

Build Status Coverage Status t PyPi version Anaconda-Server Badge

A lightweight Python tool to scrape features from OpenStreetMaps' API and return a geopandas GeoDataFrame

Installation

Via conda:

conda install -c controllerphl osm2gpd

Via PyPi:

pip install osm2gpd

Example

    import osm2gpd

    # get all subway stations within Philadelphia
    philadelphia_bounds = [-75.28030675,  39.86747186, -74.95574856,  40.13793484]
    subway = osm2gpd.get(*philadelphia_bounds, where="station=subway")

    # get all data tagged with "station" that aren't subway stations
    not_subway = osm2gpd.get(*philadelphia_bounds, where=["station", "station!=subway"])

About

Scrape features from OpenStreetMaps' API and return a geopandas GeoDataFrame

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published