title: How to send an AJAX request from node-express?
body: <p>in a node-express server, i'm getting a huge array of IP address, i want to visualize it on a map in the client.</p>
  
  <p>Due to the data set is huge, i think it's better to return the client a json containing an array of longitude and latitude.</p>
  
  <p>The thing is, from IP address to geo location, i need to send a ajax request to an api. Can i do this in the server?</p>
  
  <pre><code>   $.ajax({
          type: "GET",
          url: 'http://api/'+ip,
          dataType: "jsonp",
          success: function (res) {
           //do something;
          }
     });
  </code></pre>
  
  <p>Thanks.</p>