Better Programming

Advice for programmers.

Follow publication

Member-only story

Plan Your Holiday With Python and HERE Maps

Kirshi Yin
Better Programming
Published in
4 min readJul 5, 2021

A map with pinned locations
Photo by Capturing the human heart. on Unsplash.

Prepare the Project

Collect a list of interesting places

Prepare the coordinates

pip install geopy
geolocator = Nominatim(user_agent="your_app_name")
location = geolocator.geocode("London")
print((location.latitude, location.longitude))
(51.5073219, -0.1276474)

Mark the locations on the map

Kirshi Yin
Kirshi Yin

Written by Kirshi Yin

Self-taught Java Developer. Explores topics about Spring Boot, NLP, Linux, low-coding, and more. Interested in foreign languages, investment, personal growth.

No responses yet

Write a response