added method for getLocationData.php endpoint