is there any way of getting location cords using node js?

Viewed 24

my idea is to make a api that gets your lat and long and shows it. but im using the http library and i dont want to use the address to lat and long. i tried to use a website to get the lat and long i even tried all the geolocation stuff but its still not what I want. here is my code

var http = require('http');

http.createServer(function (req, res) {
    res.writeHead(200, {'Content-Type': 'text/plain'});
    res.end('Hello World!');
}).listen(8080); 

Note: i need this to be as accurate as possible.

0 Answers
Related