In this tutorial, you’ll learn how to use the Geoapify Places API with Leaflet to display nearby places — such as parks, museums, and cinemas — on an interactive map.

Try the live example: ➡️ View on CodePen

In this part, we’ll focus on the basics:

  • Querying the Places API by category
  • Parsing and displaying GeoJSON results
  • Styling map markers with the Geoapify Marker Icon API and showing popups in Leaflet

🧭 Table of Contents

  1. Step 1 – Set up the Leaflet Map
  2. [Step 2 – Query Places by Category Using the Geoapify Places API](#step-2-query-places-by-category-using-the-geoapify-p…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help