title: How to display API map via Ajax with a return json list
body: <p>I have a jsp page which shows all the fastfoods nearby my location by google maps API. I would like to make a javascript with ajax that will display fastfoods with  marks in the map and the table.</p>
  
  <p>This javascript is connected by url with a servlet that returns fast foods information in a json list( name, street, phone number, longitude, latitude). But I don't know what to write in the success area for displaying them.</p>
  
  <p>My code for js is :</p>
  
  <pre><code>function getNearestFastFood(){
  $.ajax({
      url: 'myservlet',
      type: 'json',
      data: {
         latitude: pos[0],
         longitude: pos[1]
      },
      success: function(data){
          //display my map and also a table with the closest fast foods
      }
  });
  }
  </code></pre>