Android Program Call the local Google Map, pass the start and end positions, and generate a Roadmap
The android program calls GoogleMap on the local machine, transmits the start and end positions, and generates a Roadmap
The android program calls GoogleMap on the local machine, transmits the start and end positions, and generates a Roadmap
If (wodeweizhipoint! = NULL) {If (wodeweizhipoint. getlatitudee6 ()! = 0) {float chufajingdu = (float) (wodeweizhipoint. getlongitudee6 ()/1e6); float chufaweidu = (float) (wodeweizhipoint. getlatitudee6 ()/1e6); float daodajingdu = (float) (appconstant. pointzuobiao. liangxiangdaohangpoint. getlongitudee6 ()/1e6); float daodaweidu = (float) (appconstant. pointzuobiao. liangxiangdaohangpoint. getlatitudee6 ()/1e6); // mark a vertex // intent I = new // intent (intent. action_view, Uri. P Arse ("http://ditu.google.cn/maps? Hl = ZH & MRT = loc & Q = 31.249351, 121.45905 "); // the route from where intent I = new intent (intent. action_view, Uri. parse ("http://ditu.google.cn/maps? F = D & source = s_d & saddr = "+ chufaweidu +", "+ chufajingdu +" & daddr = "+ daodaweidu + ", "+ daodajingdu +" & HL = ZH "); // if you force the GoogleMap client to open it, add the following two sentences. addflags (intent. flag_activity_new_task & intent. flag_activity_exclude_from_recents); I. setclassname ("com. google. android. apps. maps "," com. google. android. maps. mapsactivity "); startactivity (I) ;}} else {alertutils. toastalert (mcontext, "navigation is unavailable because you cannot obtain your location ");}