![]() |
VOOZH | about |
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:
Output:
👁 ImageExaplaination:
<script src = "https://maps.googleapis.com/maps/api/js"></script>Following are the steps required to get an API key:var CustomOp = {
center:new google.maps.LatLng(28.502212, 77.405603),
zoom:17,
mapTypeId:google.maps.MapTypeId.ROADMAP
}; In this case, CustomOp is an object that contains 3 options, centre, zoom, and maptypeid. var map = new google.maps.Map(document.getElementById("DivID"), CustomOp);