I need to solve this with arrays in jquery : I have this code and I need to create the following format of array.

     var locations = [
          ['Bondi Beach', -33.890542, 151.274856, 4],
          ['Coogee Beach', -33.923036, 151.259052, 5],
          ['Cronulla Beach', -34.028249, 151.157507, 3],
          ['Manly Beach', -33.80010128657071, 151.28747820854187, 2],
          ['Maroubra Beach', -33.950198, 151.259302, 1]
        ];

I have the following ajax petition and I receive all information correctly.

     $.ajax({
                    
                    url:   '../get-route/46',
                    type:  'get',
                    success:  function (data) {
                       $.each(data.poi, function(key, element) {
                          console.log(element.name);
                          console.log(element.latitud);
                          console.log(element.longitud);
               
                        });
                    }
            }); 

How can I append this inormation into array called localtion ? 