MCPcopy Index your code
hub / github.com/dudu90/RxLocation

github.com/dudu90/RxLocation @1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.0 ↗ · + Follow
66 symbols 130 edges 11 files 26 documented · 39%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

RxLocation

Download

Build Status

适用于Android的与Rxjava结合的,快速简单的定位库.

特性

1.和Rxjava结合,使你的代码更加简洁;

2.支持高德和百度定位,方便集成。

使用

在Gradle中添加依赖

repositories {
    maven {
        url 'https://dl.bintray.com/dudu90/maven'
    }
}

compile 'RxLocation:rxlocation:1.0'

初始化

RxLocation.initialize(context);
RxLocation.initialize(context,type);
RxLocation.initialize(context,type,option);

获取定位信息

new LocationRequester<BDLocation>().lastLocation()
                .take(1)
                .subscribeOn(Schedulers.io())
                .observeOn(AndroidSchedulers.mainThread())
                .subscribe(new Action1<BDLocation>() {
                    @Override
                    public void call(BDLocation location) {
                        //TODO
                    }
                });

TODO

1.位置提醒

2.欢迎新的需求

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

currentManager
called by 4
rxlocation/src/main/java/rxlocation/github/pitt/RxLocation.java
requestLocation
called by 2
rxlocation/src/main/java/rxlocation/github/pitt/RxLocationManager.java
receiveBaiduLocation
called by 2
app/src/main/java/com/github/rxlocation/MainActivity.java
getInstance
called by 1
rxlocation/src/main/java/rxlocation/github/pitt/BaiduRxLocationManager.java
isUnsubscribed
called by 1
rxlocation/src/main/java/rxlocation/github/pitt/BaiduRxLocationManager.java
removeListener
called by 1
rxlocation/src/main/java/rxlocation/github/pitt/BaiduRxLocationManager.java
getLastLocation
called by 1
rxlocation/src/main/java/rxlocation/github/pitt/RxLocationManager.java
setOption
called by 1
rxlocation/src/main/java/rxlocation/github/pitt/RxLocationManager.java

Shape

Method 53
Class 12
Interface 1

Languages

Java100%

Modules by API surface

rxlocation/src/main/java/rxlocation/github/pitt/BaiduRxLocationManager.java15 symbols
rxlocation/src/main/java/rxlocation/github/pitt/AMapRxLocationManager.java14 symbols
rxlocation/src/main/java/rxlocation/github/pitt/ClientOptionFactory.java7 symbols
rxlocation/src/main/java/rxlocation/github/pitt/RxLocation.java6 symbols
app/src/main/java/com/github/rxlocation/MainActivity.java6 symbols
rxlocation/src/main/java/rxlocation/github/pitt/RxLocationManager.java5 symbols
rxlocation/src/main/java/rxlocation/github/pitt/ClientOption.java4 symbols
rxlocation/src/main/java/rxlocation/github/pitt/LocationRequester.java3 symbols
rxlocation/src/main/java/rxlocation/github/pitt/Platform.java2 symbols
app/src/test/java/com/github/rxlocation/ExampleUnitTest.java2 symbols
app/src/main/java/com/github/rxlocation/RxLocationApplication.java2 symbols

For agents

$ claude mcp add RxLocation \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact