text: var request = require('request'),
      geojson = require('geojson'),
      express = require('express'),
      path = require('path');
  
  var ISS_URL = "https://api.wheretheiss.at/v1/satellites/25544";
  
  var app = express();
  
  app.set('port', (process.env.PORT || 5000));
  
  app.use(express.static(__dirname + '/public'));
  
  app.get('/', function(req, res) {
      res.sendFile(path.join(__dirname + '/index.html'));
  });
  
  app.get('/findiss', function (req, res) {
      request(ISS_URL, function (err, resp, body) {
          if (err) {
              console.log(err);
              res.status(400).json({error: 'Unable to contact ISS API'});
              return;
          }
  
          var apiResponse = JSON.parse(body);
          var issGeoJSON = geojson.parse([apiResponse], {Point: ['latitude', 'longitude']});
  
          res.json(issGeoJSON);
      });
  });
  
  app.listen(app.get('port'), function () {
      console.log("App listening on port " + app.get('port'));
  });