mirror of
https://github.com/marceloprates/prettymaps.git
synced 2025-08-12 01:25:06 +02:00
Merge branch 'main' of github.com:marceloprates/prettymaps into main
This commit is contained in:
@@ -22,7 +22,7 @@ from geopandas import GeoDataFrame
|
|||||||
import pandas as pd
|
import pandas as pd
|
||||||
from functools import reduce
|
from functools import reduce
|
||||||
from tabulate import tabulate
|
from tabulate import tabulate
|
||||||
from IPython.display import Markdown
|
from IPython.display import Markdown, display
|
||||||
from collections.abc import Iterable
|
from collections.abc import Iterable
|
||||||
|
|
||||||
# Fetch
|
# Fetch
|
||||||
@@ -117,7 +117,8 @@ def plot(
|
|||||||
zorder_streets = None,
|
zorder_streets = None,
|
||||||
zorder_building = None,
|
zorder_building = None,
|
||||||
# Whether to fetch data using OSM Id
|
# Whether to fetch data using OSM Id
|
||||||
by_osmid = False
|
by_osmid = False,
|
||||||
|
by_coordinates = False,
|
||||||
):
|
):
|
||||||
|
|
||||||
#############
|
#############
|
||||||
@@ -125,7 +126,9 @@ def plot(
|
|||||||
#############
|
#############
|
||||||
|
|
||||||
# Geocode central point
|
# Geocode central point
|
||||||
if not by_osmid:
|
if by_coordinates:
|
||||||
|
point = (float(query.split(",")[0].strip()), float(query.split(",")[1].strip()))
|
||||||
|
elif not by_osmid:
|
||||||
point = ox.geocode(query)
|
point = ox.geocode(query)
|
||||||
|
|
||||||
# Fetch perimeter
|
# Fetch perimeter
|
||||||
|
Reference in New Issue
Block a user