$get_api_url = "https://maps.googleapis.com/maps/api/place/details/json?key=$api_key&placeid=$place_id&language=$language_code";
//clean the URL
$result = file_get_contents($url);
The request above is made and received on the server side. I cannot seem to find the exact terminology used to describe the API key embedded URL.
When using JavaScript MAPs API,
let map;
function initMap() {
map = new google.maps.Map(document.getElementById("map"), {
center: { lat: -34.397, lng: 150.644 },
zoom: 8,
});
}
window.initMap = initMap;
<div id="map"></div>
<script src="https://maps.googleapis.com/maps/api/jskey=AIzaSyB41DRUbKWJHPxaFjMAwdrzWzbVKartNGg&callback=initMap&v=weekly" defer></script>
- Which part of the code qualifies as an API call in both the cases?
- How does the response received vary in case of the client side call?
- Is the URL used called an endpoint?