Google Maps Introduction (original) (raw)

Last Updated : 12 Jul, 2025

**Google Maps is a web mapping service developed by Google, that provides interactive maps and satellite imagery. Users can find locations, get directions, view street-level imagery, and explore businesses and points of interest worldwide. Also, we can get the traffic information of a specific area or view street-level images of cities. Google Maps has a JavaScript API. This API is used to customize the map which displays the information.

**Example:

javascript `

Google Maps | Introduction
<!-- Add Google map API source -->
<script src="https://maps.googleapis.com/maps/api/js">
</script>

<script>
    function GFG() {

        let CustomOp = {
            center: new google.maps.LatLng(
                28.502212, 77.405603),
            zoom: 17,
            mapTypeId: google.maps.MapTypeId.ROADMAP
        };

        // Map object
        let map = new google.maps.Map(
            document.getElementById("DivID"),
            CustomOp
        );
    }
</script>

GeeksforGeeks

    <h3>Google Maps</h3>

    <!-- Basic Container -->
    <div id="DivID" style="width:400px; height:300px;">
    </div>
</center>

`

**Output:

**Exaplaination: