Problem with route

May 27, 2010 at 5:51 PM
Edited May 27, 2010 at 5:56 PM
I use this piece of code to get a route Dim start As GMap.net.PointLatLng = New GMap.net.PointLatLng(38.047, 23.7864) Dim [end] As GMap.net.PointLatLng = New GMap.net.PointLatLng(38.13974, 23.7997) Dim route As MapRoute Dim r As GMapRoute Dim routes As GMapOverlay route = n.Manager.GetRouteBetweenPoints(start, [end], False, 5) r = New GMapRoute(route.Points, route.Name) routes = New GMapOverlay(n, "routes") n.Overlays.Add(routes) but route always return nothing.What am i doing wrong; Also i try ' route = GMaps.Instance.GetRouteBetweenPoints(start, [end], False, 5) with no result
May 27, 2010 at 6:09 PM
I also add enableroute=true but nothing again
Coordinator
May 27, 2010 at 6:20 PM

check demo ;}

May 27, 2010 at 6:23 PM
Edited May 27, 2010 at 7:03 PM
I have already check but ....I try the code to mobile
May 27, 2010 at 8:03 PM
No one can help;
Coordinator
May 27, 2010 at 8:19 PM

you can help yourself easily anywhere, anytime ;} why people even use vb

May 27, 2010 at 8:46 PM
thanks
Coordinator
May 27, 2010 at 8:48 PM

..anyway, you missed the point what's exactly doesn't work?

May 27, 2010 at 8:49 PM
the function .GetRouteBetweenPoints always return null
Coordinator
May 27, 2010 at 9:18 PM

are you sure?

May 28, 2010 at 3:49 AM
yes i am sure
Coordinator
May 28, 2010 at 6:37 AM

so why it still works in demos?

May 28, 2010 at 6:56 AM

I wish i know.My code is ok;

Coordinator
May 28, 2010 at 7:31 AM

can you run it in debug mode, maybe there is service error, try enter function step by step?

May 28, 2010 at 7:50 AM

Yes i run it in debug mode.I try one version for mobile and one for pc.GetRouteBetweenPoints always return null.Demo works fine.

PS I am 55 years old and i start learning programming with qbasic etc.So i stuck with vb and i am too old to change habits now.Thanks for your great project and your help  

Coordinator
May 28, 2010 at 8:01 AM

;}