Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.
/ lbs.ts Public archive

Parse and convert ⚡️LBS to 🛰GPS Library for TypeScript

License

Notifications You must be signed in to change notification settings

0xF6/lbs.ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lbs.ts

Library for working with LBS 🌎 towers for TypeScript 🛰

Build Status Maintainability Dependencies MIT license codecov npm

Install

yarn add lbs.ts

Run test

yarn test or yarn test-nya and for reports yarn report-test

image

Usage

Get Geo Position (GPS) for LBS Tower

let lbs_str = "250/1/19E/DC6/-76dBm";
let lbs = TowerInfo.parse(lbs);

lbs // { CID: 3526, LAC: 414, MCC: 250, MNC: 1, RSSI: -76 }

await lbs.UpdatePosition()

lbs // 
{ 
  CID: 3526, 
  LAC: 414, 
  MCC: 250, 
  MNC: 1, 
  RSSI: -76, 
  position: GeoPosition { Longitude: 55.8146706, Latitude: 37.6919327 } 
}