PYTHONPORTAL Telegram 4231
Как создавать красивые карты в Python с помощью библиотеки Prettymaps

Если нужно сгенерировать наглядные карты из данных OpenStreetMap в Python — используй prettymaps

Для начала установи необходимые зависимости через pip:
pip install -U prettymaps "osmnx>=1.9.3,<2.0" "git+https://github.com/abey79/[email protected]"


После установки можно отрисовать карту всего парой строк:
import prettymaps

plot = prettymaps.plot('Stad van de Zon, Heerhugowaard, Netherlands')


Функция plot() принимает один из следующих вариантов запроса:

🔹Адрес (например, "Porto Alegre")
🔹Координаты (например, (-30.0324999, -51.2303767))
🔹Границы в формате GeoDataFrame

Кроме того, есть возможность кастомизации и использование пресетов. Подробнее на GitHub

👉 @PythonPortal
Please open Telegram to view this post
VIEW IN TELEGRAM
118👍53🔥22😁1🏆1



tgoop.com/PythonPortal/4231
Create:
Last Update:

Как создавать красивые карты в Python с помощью библиотеки Prettymaps

Если нужно сгенерировать наглядные карты из данных OpenStreetMap в Python — используй prettymaps

Для начала установи необходимые зависимости через pip:

pip install -U prettymaps "osmnx>=1.9.3,<2.0" "git+https://github.com/abey79/[email protected]"


После установки можно отрисовать карту всего парой строк:
import prettymaps

plot = prettymaps.plot('Stad van de Zon, Heerhugowaard, Netherlands')


Функция plot() принимает один из следующих вариантов запроса:

🔹Адрес (например, "Porto Alegre")
🔹Координаты (например, (-30.0324999, -51.2303767))
🔹Границы в формате GeoDataFrame

Кроме того, есть возможность кастомизации и использование пресетов. Подробнее на GitHub

👉 @PythonPortal

BY Python Portal




Share with your friend now:
tgoop.com/PythonPortal/4231

View MORE
Open in Telegram


Telegram News

Date: |

“Hey degen, are you stressed? Just let it all out,” he wrote, along with a link to join the group. With the sharp downturn in the crypto market, yelling has become a coping mechanism for many crypto traders. This screaming therapy became popular after the surge of Goblintown Ethereum NFTs at the end of May or early June. Here, holders made incoherent groaning sounds in late-night Twitter spaces. They also role-played as urine-loving Goblin creatures. Polls The initiatives announced by Perekopsky include monitoring the content in groups. According to the executive, posts identified as lacking context or as containing false information will be flagged as a potential source of disinformation. The content is then forwarded to Telegram's fact-checking channels for analysis and subsequent publication of verified information. With the administration mulling over limiting access to doxxing groups, a prominent Telegram doxxing group apparently went on a "revenge spree."
from us


Telegram Python Portal
FROM American