Merge pull request #3 from mfbehrens99/main

Small Improvements
pull/11/head
Marcelo de Oliveira Rosa Prates 2021-04-09 11:44:49 -03:00 zatwierdzone przez GitHub
commit 7506bf3509
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 11 dodań i 8 usunięć

Wyświetl plik

@ -22,7 +22,7 @@ from geopandas import GeoDataFrame
import pandas as pd
from functools import reduce
from tabulate import tabulate
from IPython.display import Markdown
from IPython.display import Markdown, display
from collections.abc import Iterable
# Fetch
@ -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