android - Route Calculation not showing route from current position -
i using skmap's calculateroutewithpoints not able route current position.
how can set start , end point while calculating routes points(skposition)?
instead of using skposition use skviapoints:
skroutesettings skroutesetting = new skroutesettings(); skroutesetting.setstartcoordinate(new skcoordinate(77.597231,12.973654)); skroutesetting.setdestinationcoordinate(new skcoordinate(77.614500, 13.009965)); skroutesetting.setroutemode(skroutesettings.skroutemode.car_fastest); skroutesetting.setnoofroutes(1); viapointlist = new arraylist<skviapoint>(); viapointlist.add(new skviapoint(i+1000,newskcoordinate(77.629580,13.020566)); viapointlist.add(new skviapoint(i+1000,newskcoordinate(77.622440,13.037359)); skroutesetting.setviapoints(viapointlist); skroutesetting.setrouteexposed(true); skroutemanager.getinstance().setroutelistener(this); skroutemanager.getinstance().calculateroute(skroutesetting);
if using skmaps version 2.5.1 use same format of latitude & longitude & if using 3.0 , above reverse latitude & longitude values , can see routes along multiple via points.
Comments
Post a Comment