84 lines
2.0 KiB
Smali
84 lines
2.0 KiB
Smali
.class public Lcom/moji/location/geo/AmapGeoQueryParser;
|
|
.super Ljava/lang/Object;
|
|
.source "AmapGeoQueryParser.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/moji/location/geo/IGeoQueryParser;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/Object;",
|
|
"Lcom/moji/location/geo/IGeoQueryParser<",
|
|
"Lcom/amap/api/services/geocoder/RegeocodeQuery;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 10
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Lcom/moji/location/geo/MJReGeoCodeQuery;)Lcom/amap/api/services/geocoder/RegeocodeQuery;
|
|
.locals 6
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
|
|
.line 17
|
|
:cond_0
|
|
invoke-virtual {p1}, Lcom/moji/location/geo/MJReGeoCodeQuery;->a()Lcom/moji/location/geo/MJLatLonPoint;
|
|
|
|
move-result-object v0
|
|
|
|
.line 18
|
|
new-instance v1, Lcom/amap/api/services/core/LatLonPoint;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/location/geo/MJLatLonPoint;->getLat()D
|
|
|
|
move-result-wide v2
|
|
|
|
invoke-virtual {v0}, Lcom/moji/location/geo/MJLatLonPoint;->getLng()D
|
|
|
|
move-result-wide v4
|
|
|
|
invoke-direct {v1, v2, v3, v4, v5}, Lcom/amap/api/services/core/LatLonPoint;-><init>(DD)V
|
|
|
|
.line 20
|
|
new-instance v0, Lcom/amap/api/services/geocoder/RegeocodeQuery;
|
|
|
|
invoke-virtual {p1}, Lcom/moji/location/geo/MJReGeoCodeQuery;->b()F
|
|
|
|
move-result p1
|
|
|
|
const-string v2, "autonavi"
|
|
|
|
invoke-direct {v0, v1, p1, v2}, Lcom/amap/api/services/geocoder/RegeocodeQuery;-><init>(Lcom/amap/api/services/core/LatLonPoint;FLjava/lang/String;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public synthetic b(Lcom/moji/location/geo/MJReGeoCodeQuery;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
.line 10
|
|
invoke-virtual {p0, p1}, Lcom/moji/location/geo/AmapGeoQueryParser;->a(Lcom/moji/location/geo/MJReGeoCodeQuery;)Lcom/amap/api/services/geocoder/RegeocodeQuery;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|