Open Jakub-L opened 3 years ago
Hi,
You can create a Polygon
in a GeoDataFrame
. Note that the Latitude and Longitude are in reverse order. This is an example of what it should look like for a box around Eureka California around (40.8003, -124.1628):
GeoDataFrame(geometry=[Polygon( ( (-124.1879,40.7762),(-124.1211,40.7737),(-124.1189,40.8251),(-124.1738,40.8194),(-124.1927,40.7868) ) )], crs=4326)
at the moment this might fail if you try this with streets
, but I've just done a PR that should fix this #48.
Another point I ran into: the index should be a RangeIndex as otherwise it prettymaps cannot create a Nominatim query properly.
At the moment, as far as I am aware, there are 2 ways to define what to render:
I would like to define the area to render by a number of coordinates - e.g. four street corners in a city.
I tried to do it with a
Polygon
, with a list of coordinates, but it errors out: