Page 1 of 1

Calculate a road. Is it possible ?

Posted: Sat Nov 25, 2006 4:40 am
by devprog_nc
Hi,

Is it possible to calculate a road with GPSTOOLS ?

Thank You.

Pascal

RE: Calculate a road. Is it possible ?

Posted: Sat Nov 25, 2006 3:59 pm
by Jonas
What do you mean by "calculate"? You can both draw a polyline and calculate the distance between two positions with GpsTools.

Regards,
Jonas
Franson Support

RE: Calculate a road. Is it possible ?

Posted: Tue Nov 28, 2006 9:50 am
by devprog_nc
In fact, I would like to know if, with gpstools, it's possible to define two points and find the best road (fastest, lnger, etc.) like Tomtom.

Thank you

RE: Calculate a road. Is it possible ?

Posted: Tue Nov 28, 2006 11:17 am
by Jonas
There is no such algorithm in GpsTools, but you can implement it yourself. GpsTools do support some of the necessary components like FindClosestNode. You could implement some algorithm (like Djikstra's) to calculate the road.

Regards,
Jonas
Franson Support

RE: Calculate a road. Is it possible ?

Posted: Tue Nov 28, 2006 2:54 pm
by verveh

RE: Calculate a road. Is it possible ?

Posted: Tue Nov 28, 2006 3:01 pm
by devprog_nc
Thank you for your info.

My problem is : I don't like mathematic, so I can't translate dijkstra algorithm in VB.NET. Somebody already do it ?

RE: Calculate a road. Is it possible ?

Posted: Tue Nov 28, 2006 3:59 pm
by verveh

RE: Calculate a road. Is it possible ?

Posted: Tue Nov 28, 2006 11:17 pm
by devprog_nc

RE: Calculate a road. Is it possible ?

Posted: Wed Nov 29, 2006 5:04 pm
by verveh
Originally posted by devprog_nc

Here an interesting link I found

http://cs.nerdbank.net/blogs/jmpinline/archive/2006/01/27/127.aspx?Ajax_CallBack=true





That's written in C#. There are a lot of examples in VB as well.