devprog_nc
Posts: 16
Joined: Wed Sep 13, 2006 3:32 pm
Location: New Caledonia

Calculate a road. Is it possible ?

Sat Nov 25, 2006 4:40 am

Hi,

Is it possible to calculate a road with GPSTOOLS ?

Thank You.

Pascal

Jonas
Posts: 2319
Joined: Mon Jan 09, 2006 2:20 pm
Location: Sweden

RE: Calculate a road. Is it possible ?

Sat Nov 25, 2006 3:59 pm

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

devprog_nc
Posts: 16
Joined: Wed Sep 13, 2006 3:32 pm
Location: New Caledonia

RE: Calculate a road. Is it possible ?

Tue Nov 28, 2006 9:50 am

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

Jonas
Posts: 2319
Joined: Mon Jan 09, 2006 2:20 pm
Location: Sweden

RE: Calculate a road. Is it possible ?

Tue Nov 28, 2006 11:17 am

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

verveh
Posts: 51
Joined: Mon May 15, 2006 2:10 pm
Location: Netherlands

RE: Calculate a road. Is it possible ?

Tue Nov 28, 2006 2:54 pm


devprog_nc
Posts: 16
Joined: Wed Sep 13, 2006 3:32 pm
Location: New Caledonia

RE: Calculate a road. Is it possible ?

Tue Nov 28, 2006 3:01 pm

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 ?

verveh
Posts: 51
Joined: Mon May 15, 2006 2:10 pm
Location: Netherlands

RE: Calculate a road. Is it possible ?

Tue Nov 28, 2006 3:59 pm



verveh
Posts: 51
Joined: Mon May 15, 2006 2:10 pm
Location: Netherlands

RE: Calculate a road. Is it possible ?

Wed Nov 29, 2006 5:04 pm

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.

Return to “GpsTools”