<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Google Maps Place Autocomplete</title>
    <style>
        /* Set the size of the map */
        #map {
            height: 400px;
            width: 100%;
        }
        /* Style the input field */
        #pac-input {
            margin-top: 10px;
            width: 300px;
            padding: 5px;
            font-size: 14px;
        }
    </style>
</head>
<body>
    <input id="pac-input" type="text" placeholder="Search for a place">
    <div id="map"></div>
 
    <!-- Load the Google Maps JavaScript API with the Places library -->
 
     <script async defer
        src="https://maps.gomaps.pro/maps/ap…