<!DOCTYPE html> <html> <head> <title>Leaflet Control Geocoder</title> <meta charset="utf-8" /> <link rel="stylesheet" href="https://unpkg.com/leaflet/dist/leaflet.css" /> <link rel="stylesheet" href="https://unpkg.com/leaflet-control-geocoder/dist/Control.Geocoder.css" /> </head> <body> <div id="map" style="width: 600px; height: 400px;"></div> <script src="https://unpkg.com/leaflet/dist/leaflet.js"></script> <script src="https://unpkg.com/leaflet-control-geocoder/dist/Control.Geocoder.js"></script> <script> var map = L.map('map').setView([0, 0], 2); L.tileLayer('https://{s}.tile.osm.org/{z}/{x}/{y}.png', { attribution: '© <a href="https://osm.org/copyright">OpenStreetMap</a> contributors' }).addTo(map); L.Control.geocoder({ geocoder: L.Control.Geocoder.nominatim() }).addTo(map); </script> </body> </html>