title: How do I set custom locations based on latitude and longitude in Node.js?
body: <p>I need to be able to set a location based on latitude and longitude while doing a Headless Chrome (Puppeteer) search:</p>
  
  <pre><code>const puppeteer = require('puppeteer');
  var url="https://www.google.com/search?q=";
  var keyword="hotels&amp;num=100";
  var urls;
  var desktopUserAgent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36";
  const response=[];
  var i=0;
  var userAgent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36";
  
  (async () =&gt; 
    const browser = await puppeteer.launch({headless: false });
    const page = await browser.newPage();
    urls=url+keyword;
      /*page.setViewport({
          width: 1000,
          height: 1000
      });*/
  page.setUserAgent(userAgent);
    response[i]=await page.goto(urls);
    console.log(await browser.version());
  })();
  </code></pre>