/** @deprecated */
@Deprecated
public
static
void
openWebBaiduMapNavi
(
NaviParaOption
var0
,
Context
var1
)
throws
IllegalNaviArgumentException
{
if
(
var0
!=
null
&&
var1
!=
null
)
{
if
(
var0
.
a
!=
null
&&
var0
.
c
!=
null
)
{
GeoPoint
var7
=
CoordUtil
.
ll2mc
(
var0
.
a
);
GeoPoint
var8
=
CoordUtil
.
ll2mc
(
var0
.
c
);
StringBuilder
var9
=
new
StringBuilder
();
var9
.
append
(
"http://daohang.map.baidu.com/mobile/#navi/naving/start="
);
var9
.
append
(
var7
.
getLongitudeE6
());
var9
.
append
(
","
);
var9
.
append
(
var7
.
getLatitudeE6
());
var9
.
append
(
"&endp="
);
var9
.
append
(
var8
.
getLongitudeE6
());
var9
.
append
(
","
);
var9
.
append
(
var8
.
getLatitudeE6
());
var9
.
append
(
"&fromprod="
);
var9
.
append
(
a
(
var1
));
var9
.
append
(
"/vt=map&state=entry"
);
Uri
var5
=
Uri
.
parse
(
var9
.
toString
());
Intent
var6
=
new
Intent
();
var6
.
setAction
(
"android.intent.action.VIEW"
);
var6
.
setFlags
(
268435456
);
var6
.
setData
(
var5
);
var1
.
startActivity
(
var6
);
}
else
{
if
(
var0
.
b
==
null
||
var0
.
b
.
equals
(
""
)
||
var0
.
d
==
null
||
var0
.
d
.
equals
(
""
))
{
throw
new
IllegalNaviArgumentException
(
"you must set start and end point or set the start and end name."
);
}
StringBuilder
var2
=
new
StringBuilder
();
var2
.
append
(
"http://daohang.map.baidu.com/mobile/#search/search/qt=nav&sn=2$$$$$$"
);
var2
.
append
(
var0
.
b
);
var2
.
append
(
"$$$$$$&en=2$$$$$$"
);
var2
.
append
(
var0
.
d
);
var2
.
append
(
"$$$$$$&fromprod="
);
var2
.
append
(
a
(
var1
));
Uri
var3
=
Uri
.
parse
(
var2
.
toString
());
Intent
var4
=
new
Intent
();
var4
.
setAction
(
"android.intent.action.VIEW"
);
var4
.
setData
(
var3
);
var1
.
startActivity
(
var4
);
}
}
else
{
throw
new
IllegalNaviArgumentException
(
"para or context can not be null."
);
}
}