Click here to Skip to main content
15,911,030 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to use google map in vb.net application Pin
Simon_Whale4-Mar-11 3:27
Simon_Whale4-Mar-11 3:27 
AnswerRe: How to use google map in vb.net application Pin
Eddy Vluggen4-Mar-11 4:39
professionalEddy Vluggen4-Mar-11 4:39 
QuestionRe: How to use google map in vb.net application Pin
ejaz_pk4-Mar-11 20:48
ejaz_pk4-Mar-11 20:48 
AnswerRe: How to use google map in vb.net application Pin
Eddy Vluggen5-Mar-11 1:36
professionalEddy Vluggen5-Mar-11 1:36 
QuestionRe: How to use google map in vb.net application Pin
ejaz_pk14-Mar-11 20:09
ejaz_pk14-Mar-11 20:09 
AnswerRe: How to use google map in vb.net application Pin
Eddy Vluggen15-Mar-11 1:48
professionalEddy Vluggen15-Mar-11 1:48 
GeneralRe: How to use google map in vb.net application Pin
ejaz_pk15-Mar-11 19:56
ejaz_pk15-Mar-11 19:56 
AnswerRe: How to use google map in vb.net application Pin
Eddy Vluggen16-Mar-11 11:49
professionalEddy Vluggen16-Mar-11 11:49 
ejaz_pk wrote:
Can you please give me any sample code to get any idea to get the distance and fastest route?

I'm sorry, but the code is copyrighted and not mine to give. I'd have turned it into an article if it wasn't Smile | :) Would also have been too much to post as a copy&paste sample.

Simplest solution is to measure all possible distances. That requires you to build a tree with all possible routes. The root would be your startingpoint, and if you can move to two new points from there, you'd add those as children - recursively.

Once you have all possible routes, you'd have to measure how long it is, or request it's length over some third-party. If need be free, you can use the database from Geonames.org, and calculate the length of a straight line connecting each point. You'd have to account for the earth being a big round ball, but there are formulas[^] out there that return you a length of a line on a ball. Once you have written all lengths into the tree, you find the one that gives the shortest value.

That's a simplistic algorithm that'll generate relatively satisfying results. A more complicated algorithm like Dijkstra's would be an improvement. You can also improve on this by getting "real" distances from Google for the distance between two points - but that's going to cost money if you're going to do it in bulk.

Good luck Smile | :)
I are Troll Suspicious | :suss:

QuestionGhostscript Convert PDF to TIFF with color Pin
Tomb4213-Mar-11 3:14
Tomb4213-Mar-11 3:14 
AnswerRe: Ghostscript Convert PDF to TIFF with color Pin
Dave Kreskowiak3-Mar-11 4:21
mveDave Kreskowiak3-Mar-11 4:21 
GeneralRe: Ghostscript Convert PDF to TIFF with color Pin
Tomb4213-Mar-11 4:38
Tomb4213-Mar-11 4:38 
GeneralRe: Ghostscript Convert PDF to TIFF with color Pin
Dave Kreskowiak3-Mar-11 4:56
mveDave Kreskowiak3-Mar-11 4:56 
Questionemail application in vb without the use of MAPI controls Pin
K Suresh Nair3-Mar-11 1:09
K Suresh Nair3-Mar-11 1:09 
AnswerRe: email application in vb without the use of MAPI controls Pin
Richard MacCutchan3-Mar-11 2:20
mveRichard MacCutchan3-Mar-11 2:20 
GeneralRe: email application in vb without the use of MAPI controls Pin
K Suresh Nair3-Mar-11 3:18
K Suresh Nair3-Mar-11 3:18 
GeneralRe: email application in vb without the use of MAPI controls Pin
Richard MacCutchan3-Mar-11 3:23
mveRichard MacCutchan3-Mar-11 3:23 
AnswerRe: email application in vb without the use of MAPI controls Pin
_Erik_3-Mar-11 2:30
_Erik_3-Mar-11 2:30 
AnswerRe: email application in vb without the use of MAPI controls Pin
Simon_Whale3-Mar-11 2:57
Simon_Whale3-Mar-11 2:57 
GeneralRe: email application in vb without the use of MAPI controls Pin
K Suresh Nair3-Mar-11 3:12
K Suresh Nair3-Mar-11 3:12 
QuestionVisual Basic: Do Until i = 1 To LastFolderFound - Adding a new record Number Pin
Memphis761-Mar-11 22:59
Memphis761-Mar-11 22:59 
AnswerRe: Visual Basic: Do Until i = 1 To LastFolderFound - Adding a new record Number [modified] Pin
_Erik_1-Mar-11 23:26
_Erik_1-Mar-11 23:26 
GeneralRe: Visual Basic: Do Until i = 1 To LastFolderFound - Adding a new record Number Pin
Memphis762-Mar-11 6:24
Memphis762-Mar-11 6:24 
GeneralRe: Visual Basic: Do Until i = 1 To LastFolderFound - Adding a new record Number Pin
Memphis762-Mar-11 14:02
Memphis762-Mar-11 14:02 
GeneralRe: Visual Basic: Do Until i = 1 To LastFolderFound - Adding a new record Number Pin
_Erik_3-Mar-11 0:32
_Erik_3-Mar-11 0:32 
AnswerRe: Visual Basic: Do Until i = 1 To LastFolderFound - Adding a new record Number Pin
Luc Pattyn2-Mar-11 1:39
sitebuilderLuc Pattyn2-Mar-11 1:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.