Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
SaulBerrenson authored Jul 25, 2020
1 parent df88011 commit 6969733
Showing 1 changed file with 80 additions and 0 deletions.
80 changes: 80 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# BSRetriever
Library to retrive location from mobile networks information (cell tower | base stations) by MCC, MNC, LAC, CID or get location for BSSID Wi-Fi
Also you can retrive address from location and build link from location :)

# Features

Base Station Retrivers:
```
-Myinakov
-Yandex
-Cell2Gps
```
Wi-fi bssid Retrivers:
```
-Myinakov
-Yandex
```

Address Retrivers:
```
-Nominatim
```
Link Builder:
```
-Yandex
-OSM
```
# Usage Base Station Retrivers

```
[Fact]
public void TestBS()
{
var retriver = new Retriver(("358","03", "3303333", "433523333398"))
.withLink(new YandexLink())
.withLocationRetriver(new RetriverMyinakov())
.withRetriverAddress(new Nominatim());
Assert.True(retriver.Retrive());
Assert.Equal(retriver.Location, (60.0092613318, 30.26237712392));
Assert.True(retriver.RetriveAddress());
retriver.withLocationRetriver(new RetriverYandex());
Assert.True(retriver.Retrive());
Assert.True(retriver.RetriveAddress());
Assert.Equal(retriver.Location, (60.0117645, 30.2631016));
Assert.True(retriver.Retrive());
Assert.Equal(retriver.Location, (60.0117645, 30.2631016));
}
```
# Usage Wi-Fi bssid Retrivers

```
[Fact]
public void TestWifi()
{
var ret = new RetriverWifi("EE:43:F6:D1:B6:90")
.withLink(new YandexLink())
.withRetriverAddress(new Nominatim())
.withLocationRetriver(new RetriverYandexWifi());
Assert.True(ret.Retrive());
Assert.Equal(ret.Location, (45.0387230, 39.0997925));
ret.setData("00:0C:42:1F:65:E9")
.withLocationRetriver(new RetriverMyinakovWifi());
Assert.True(ret.Retrive());
Assert.Equal(ret.Location, (45.22219677812, 16.54683275428));
}
```



0 comments on commit 6969733

Please sign in to comment.