marceloprates / prettymaps

A small set of Python functions to draw pretty maps from OpenStreetMap data. Based on osmnx, matplotlib and shapely libraries.
GNU Affero General Public License v3.0
11.12k stars 522 forks source link

fix issue when querying within a polygon #34

Closed mei-se closed 3 years ago

mei-se commented 3 years ago

The parse_query function checked whether the query parameter was of type Polygon or MultiPolygon, while the underlying library expected a GeoDataFrame (which is also what get_perimeter returns).

This should also be useful for #31.