geolocation-360
A library for getting coordinates from mobile country code(MCC), mobile network code(MNC), location area code(LAC) and Cell ID(CID).
Node package
Using npm:
$ npm i --save geolocation-360
In Node.js:
var geolocation = require('geolocation-360');
Code examples
Initialization
var init = {
googleApiKey: 'google api key',
openCellIdApiKey: 'open cell id token',
mcc: '515',
mnc: '03',
};
geolocation.initialize(init);
Requests
var params = {
lac: '2b0c',
cid: '7be7',
mcc: '515',
mnc: '05',
};
geolocation.request(params, (error, result) => {
if (result) {
console.log(result);
} else {
console.log(error);
}
});
geolocation.requestGooglePrimitive(params, (error, result));
geolocation.requestGoogle(params, (error, result));
geolocation.requestOpenCellId(params, (error, result));