Any better way to reduce the no of ‘Google Map API’ request call in a web application which send request in every 30 seconds for 50 users to know their latest location details ?
window.setInterval(function () {
changeMarkerPosition();
}, 30000);
function changeMarkerPosition() {
var coolLatlng = new google.maps.LatLng(currentLatitude, currentLongitude);
map.panTo(new google.maps.LatLng(currentLatitude, currentLongitude));
marker.setPosition(coolLatlng);
markers.push(marker);
flightPlanCoordinates[0] = new google.maps.LatLng({
lat : currentLatitude,
lng : currentLongitude
});
}