<div dir="ltr">Hei,<div class="gmail_quote"><div dir="ltr">
<div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif"><br aria-hidden="true">
</div>
<div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif">Jeg har bygd min første NodeJS pakke og publisert denne på <a href="https://www.npmjs.com/package/location-server/" rel="noopener noreferrer" id="m_-8114010921511935777gmail-LPlnkOWALinkPreview_1" target="_blank">https://www.npmjs.com/package/location-server/</a></div><div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif"><br></div><div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif"><div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif">
<div>$ git clone <a href="https://gitlab.com/ole.aamot/location-server" rel="noopener noreferrer" id="m_-8114010921511935777gmail-LPlnkOWALinkPreview" target="_blank">https://gitlab.com/ole.aamot/location-server</a><br aria-hidden="true">
</div></div>
<div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif">$ npm install axios express<br aria-hidden="true">
</div>
<div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif">$ node location-server.cjs<br aria-hidden="true">
<div><br aria-hidden="true">
</div>
<div>> location-server@8.0.1 start</div>
<div>> node location-server.cjs</div>
<div><br aria-hidden="true">
</div>Location Data Server listening on port 3000</div>
<div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif"><br aria-hidden="true">
</div>
<div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif">$ curl <span><a href="http://localhost:3000/location-data?service=Food&glat=60&glon=10&radius=100000" rel="noopener noreferrer" target="_blank">http://localhost:3000/location-data?service=Food&glat=60&glon=10&radius=1000</a></span><br aria-hidden="true">
</div>
<div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif">"var
 locations = '{ \"locations\" : [' + '{\"id\": \"11884992\", \"name\": 
\"Løren\", \"service\": \"Food\", \"location\": 
\"<a href="https://www.loren.no/%5C" target="_blank">https://www.loren.no/\</a>", \"modified\": \"2023-07-04 12:00:00\", 
\"created\": \"2023-07-05 12:00:00\", \"glat\": \"59.92929197\", 
\"glon\": \"10.79022856\", \"paid\": \"0\", \"token\": 
\"tok_1NPyQRAgJ7jHvJPRPHRLaktB\", \"type\": \"card\", \"distance\": 
\"44.61835617894167\", \"email\": \"ole@aamot.software\"},{\"id\": 
\"11884996\", \"name\": \"@HappyJuly4th\", \"service\": \"Food\", 
\"location\": \"<a href="https://www.piperpal.com/Food/@HappyJuly4th%5C" target="_blank">https://www.piperpal.com/Food/@HappyJuly4th\</a>", 
\"modified\": \"2023-07-18 12:00:00\", \"created\": \"2023-07-25 
12:00:00\", \"glat\": \"59.92929074\", \"glon\": \"10.79037934\", 
\"paid\": \"1\", \"token\": \"tok_1NQ1oDAgJ7jHvJPRGaiDmiKR\", \"type\": 
\"card\", \"distance\": \"44.62663072803127\", \"email\": 
\"<a href="mailto:ole@aamotsoftware.no" target="_blank">ole@aamotsoftware.no</a>\"}]}';\n"<br aria-hidden="true">
</div>
<div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif"><br aria-hidden="true">
</div>
<div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif">CGI-parametrene service, glat, glon og radius er skrankene for søket som foretas via axios.get() til responsen<br aria-hidden="true">
</div>
<div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif">
<pre><span><span>const</span><span> response </span><span>= </span><span>await</span><span> axios.</span><span>get</span><span>(</span><span><span>`<a href="https://api.piperpal.com/location/json.php?service=" target="_blank">https://api.piperpal.com/location/json.php?service=</a></span><span>${service}</span><span>&glat=</span><span>${glat}</span><span>&glon=</span><span>${glon}</span><span>&radius=</span><span>${radius}</span><span>`</span></span><span>)</span><span>;</span></span><span><span></span><span>
</span></span></pre></div>
<div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif">Jeg skriver ut responsen med res.json().</div>
<div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif"><br aria-hidden="true">
</div>
<div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif">Responsen er</div>
<div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif"><br aria-hidden="true">
</div>
<div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif">"var
 locations = '{ \"locations\" : [' + '{\"id\": \"11884992\", \"name\": 
\"Løren\", \"service\": \"Food\", \"location\": 
\"<a href="https://www.loren.no/%5C" target="_blank">https://www.loren.no/\</a>", \"modified\": \"2023-07-04 12:00:00\", 
\"created\": \"2023-07-05 12:00:00\", \"glat\": \"59.92929197\", 
\"glon\": \"10.79022856\", \"paid\": \"0\", \"token\": 
\"tok_1NPyQRAgJ7jHvJPRPHRLaktB\", \"type\": \"card\", \"distance\": 
\"44.61835617894167\", \"email\": \"ole@aamot.software\"},{\"id\": 
\"11884996\", \"name\": \"@HappyJuly4th\", \"service\": \"Food\", 
\"location\": \"<a href="https://www.piperpal.com/Food/@HappyJuly4th%5C" target="_blank">https://www.piperpal.com/Food/@HappyJuly4th\</a>", 
\"modified\": \"2023-07-18 12:00:00\", \"created\": \"2023-07-25 
12:00:00\", \"glat\": \"59.92929074\", \"glon\": \"10.79037934\", 
\"paid\": \"1\", \"token\": \"tok_1NQ1oDAgJ7jHvJPRGaiDmiKR\", \"type\": 
\"card\", \"distance\": \"44.62663072803127\", \"email\": 
\"<a href="mailto:ole@aamotsoftware.no" target="_blank">ole@aamotsoftware.no</a>\"}]}';\n"<br aria-hidden="true">
</div>
<div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif"><br aria-hidden="true">
</div>
<div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif">Jeg har skrevet mer om Piperpal 7.0 JSON API på <a href="https://www.piperpal.com/mobile/" rel="noopener noreferrer" id="m_-8114010921511935777gmail-LPlnk407418" target="_blank">https://www.piperpal.com/mobile/</a></div>
<div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif"><br aria-hidden="true">
</div>
<div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif">og <a href="http://www.stud.ntnu.no/~olekaam/thesis.pdf" rel="noopener noreferrer" title="https://www.stud.ntnu.no/~olekaam/thesis.pdf" target="_blank">http://www.stud.ntnu.no/~olekaam/thesis.pdf</a>  fra 1 August 2023 (Pending Review).<br aria-hidden="true">
</div>
<div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif"><br aria-hidden="true">
</div>
<div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif">Følger PROG2053 ved NTNU i Gjøvik for veiledning rundt å skrive applikasjoner i express i npm og NodeJS.</div><br aria-hidden="true">
<div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif">Bachelor-oppgaven min om lokasjonssøking som jeg skriver på og har publisert som Piperpal Mobile på <a href="https://www.piperpal.com/mobile/" rel="noopener noreferrer" id="m_-8114010921511935777gmail-LPlnk640743" target="_blank">https://www.piperpal.com/mobile/</a> og location-server for NodeJS er publisert på <a href="https://www.npmjs.com/package/location-server/" rel="noopener noreferrer" target="_blank">https://www.npmjs.com/package/location-server/</a><br aria-hidden="true">
</div>
<div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif"><br aria-hidden="true">
</div>
<div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif">Du finner kildekoden til <a href="http://www.piperpal.com" rel="noopener noreferrer" id="m_-8114010921511935777gmail-LPlnk250101" target="_blank">www.piperpal.com</a> på <a href="https://www.github.com/piperpal/www/" rel="noopener noreferrer" id="m_-8114010921511935777gmail-LPlnkOWALinkPreview" target="_blank">https://www.github.com/piperpal/www/</a></div>
<div>
<div id="m_-8114010921511935777gmail-LPBorder_GTaHR0cHM6Ly93d3cuZ2l0aHViLmNvbS9waXBlcnBhbC93d3cv" style="width:100%;max-width:800px;margin-top:16px;margin-bottom:16px;min-width:424px"><table id="m_-8114010921511935777gmail-LPContainer984238" role="presentation" style="width:100%;border-radius:2px;padding:12px 36px 12px 12px;border:1px solid rgb(200,200,200)">
<tbody><tr valign="top" style="border-spacing:0px">
<td>
<div id="m_-8114010921511935777gmail-LPImageContainer984238" style="width:240px;height:120px;margin-right:12px;overflow:hidden"><a href="https://www.github.com/piperpal/www/" rel="noopener noreferrer" id="m_-8114010921511935777gmail-LPImageAnchor984238" target="_blank"><img src="https://opengraph.githubassets.com/e6ebcf5f5ec6010fc43461545f5e10719bf3b5235c61a91563b6bb8f807593d8/piperpal/www" width="240" height="120" id="m_-8114010921511935777gmail-LPThumbnailImageId984238" style="display:block"></a></div></td>
<td style="width:100%">
<div id="m_-8114010921511935777gmail-LPTitle984238" style="font-size:21px;font-family:wf_segoe-ui_light,Segoe UI Light,Segoe WP Light,Segoe UI,Segoe WP,Tahoma,Arial,sans-serif;font-weight:300;margin-right:8px;margin-bottom:12px"><a href="https://www.github.com/piperpal/www/" rel="noopener noreferrer" id="m_-8114010921511935777gmail-LPUrlAnchor984238" style="text-decoration:none" target="_blank">GitHub - piperpal/www: www.piperpal.com</a></div>
<div id="m_-8114010921511935777gmail-LPDescription984238" style="color:rgb(102,102,102);font-size:14px;font-family:wf_segoe-ui_normal,Segoe UI,Segoe WP,Tahoma,Arial,sans-serif;margin-right:8px;margin-bottom:12px;overflow:hidden;max-height:100px"><a href="http://www.piperpal.com" target="_blank">www.piperpal.com</a>. Contribute to piperpal/www development by creating an account on GitHub.</div>
<div id="m_-8114010921511935777gmail-LPMetadata984238" style="color:rgb(166,166,166);font-size:14px;font-family:wf_segoe-ui_normal,Segoe UI,Segoe WP,Tahoma,Arial,sans-serif;font-weight:400"><a href="http://www.github.com" target="_blank">www.github.com</a></div></td></tr></tbody></table></div></div>
<div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif">Serveren
 location-server for NodeJS kjører lokalt med "node location-server.cjs"
 som HTTP/1.1 tjeneste og reflekterer SQL-databasen til <a href="http://www.piperpal.com" rel="noopener noreferrer" id="m_-8114010921511935777gmail-LPlnk382140" target="_blank">www.piperpal.com</a> (Piperpal 7.0 JSON Server) som et NodeJS package-grensesnitt.</div>
<div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif"><br></div><div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif">Lokasjonssøkemotoren <a href="http://www.piperpal.com">www.piperpal.com</a> og databasen inneholder 11.835.708 lokasjonsoppføringer for service=Books fra <a href="http://wikinames.info">wikinames.info</a>.</div><div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif"><br></div><div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif">Dette er en prototype av Geolokasjonsgrensesnitt for datainnsamling ved hjelp av W3C sitt Geolocation API, HTML5, CSS, og jQuery.<br></div><div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif"><br></div><div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif">En kan legge til nye oppføringer på <a href="http://www.geopher.com">www.geopher.com</a> ved hjelp av VISA-kort.<br></div><div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif"><br></div><div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif">Hører gjerne fra Dere!</div><div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif"><br></div><div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif">Mvh,</div><div style="color:black;font-size:12pt;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif">Ole Aamot<br></div></div></div>
</div></div>