Unable to use GetRouteBetweenPoints

Jun 22, 2009 at 11:51 AM

Hello all,

First i want to thank radioman, nice project GZ.

I'm trying to use this

Dim rotacerta As List(Of PointLatLng) = GMaps.Instance.GetRouteBetweenPoints(p1, p2, False, 10)

But i always get this :

Error    2    Value of type 'GMap.NET.MapRoute' cannot be converted to 'System.Collections.Generic.List(Of GMap.NET.PointLatLng)'. 

Can you guys help me and tell me what i'm doing wrong.

 

Other thing is it possible to know the name of the street by pointing Lat and Long?

 

Best Regards,

Coordinator
Jun 22, 2009 at 12:29 PM

the real defination of function is: 

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

Jun 22, 2009 at 1:23 PM

I did tryed this also,

Dim testes As New MapRoute (GMaps.Instance.GetRouteBetweenPoints(p1, p2, False, 10), "testes")

But didn't worked also.

Sorry but i really cant understand it.

 

 

Coordinator
Jun 22, 2009 at 2:35 PM

Dim testes As MapRoute GMaps.Instance.GetRouteBetweenPoints(p1, p2, False, 10);

Jun 22, 2009 at 4:54 PM
Edited Jun 22, 2009 at 5:04 PM

Forget it just made it ty.

Sorry


Sorry again but in VB.net 2008

 

Dim p1 As New PointLatLng(lat, lng)
Dim p2 As New PointLatLng(lat2, lng2)

Dim testes As MapRoute(GMaps.Instance.GetRouteBetweenPoints(p1, p2, False, 10))

and instantly give me this error Error 1 Array bounds cannot appear in type specifiers

Sorry but i cant get where i'm doing it wrong

 

Jun 22, 2009 at 6:14 PM

xinoura, are you portuguese?

i´ve been working in this project in vb2008 express, if you want i give you the code that i´ve done already. It´s working.

My msn is lsoares_73@hotmail.com

 

Best regards

ps, radioman, i hope that you dont mind about pm messages.

 

sorry for my english