mirror of
https://github.com/marceloprates/prettymaps.git
synced 2025-01-17 04:58:13 +01:00
Support for coordinates
This commit is contained in:
parent
78ce817218
commit
58e27bd9d6
@ -117,7 +117,8 @@ def plot(
|
||||
zorder_streets = None,
|
||||
zorder_building = None,
|
||||
# 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
|
||||
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)
|
||||
|
||||
# Fetch perimeter
|
||||
|
Loading…
x
Reference in New Issue
Block a user