routing with other maps

Topics: General
Apr 2, 2011 at 9:55 AM

Hello,

How do I get to follow the route with other maps, not Google, because my town is not detailed in google.

Coordinator
Apr 2, 2011 at 9:58 AM

you can try openstreet routing

Apr 2, 2011 at 10:59 AM

I have found the description in the project

public MapRoute GetRouteBetweenPoints(PointLatLng start, PointLatLng end, bool avoidHighways, int Zoom)      

string tooltip;  

int numLevels;        

int zoomFactor;        

MapRoute ret = null;        

List<PointLatLng> points = GetRouteBetweenPointsUrl(MakeRouteUrl(start, end, LanguageStr, avoidHighways), Zoom, UseRouteCache, out tooltip, out numLevels, out zoomFactor);         if(points != null)         {            ret = new MapRoute(points, tooltip);         }    

return ret;    

 }

 

internal string MakeRouteUrl(PointLatLng start, PointLatLng end, string language, bool avoidHighways)      

{    

    string highway = avoidHighways ? "&mra=ls&dirflg=dh" : "&mra=ls&dirflg=d";
    return string.Format("http://maps.google.com/maps?f=q&output=dragdir&doflg=p&hl={0}{1}&q=&saddr=@{2},{3}&daddr=@{4},{5}", language, highway, start.Lat.ToString(CultureInfo.InvariantCulture), start.Lng.ToString(CultureInfo.InvariantCulture), end.Lat.ToString(CultureInfo.InvariantCulture), end.Lng.ToString(CultureInfo.InvariantCulture));    

 }         

 

Please tell me how I can get openstreet routing

Coordinator
Apr 2, 2011 at 11:08 AM

check http://www.yournavigation.org/ and http://greatmaps.codeplex.com/SourceControl/network/Forks/ViktorBergman/viktorbergman

Apr 2, 2011 at 11:17 AM

ok, thanx)

Apr 26, 2011 at 5:35 AM

Excuse me , I'm a newbie here..

I'm using VB.net (VS10), I want to route on Bing Map , I went thru Viktorbergman Fork but i cannot really convert  his code to VB.net

Any suggestions?

Coordinator
Apr 26, 2011 at 6:57 AM

you can wait until i include that functionality ;} or you can try c#