473,486 Members | 2,407 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Shortest Path

Lau
How do I easily calculate the shortest path between two geographical spots on
a map?
The map is divided into zones. So I guess it is possible to use Dijkstra’s
Shortest Path algorithm, but it seems like a lot of work and I am sure that
it has been done many times before.
From (x,y) coordinates I need to place the user in a zone and find the
shortest path to all other zones.
Any suggestions are more than welcome. I would hate to reinvent the wheel!
Should I look at MS MapPoint or is that overkill?

--
--------------------

Jul 21 '05 #1
6 2075
If you are talking which road to take, MapPoint web service is certainly an
option. I am fairly sure the expense of development time will outweigh the
expense of using MapPoint.

---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************

"Lau" wrote:
How do I easily calculate the shortest path between two geographical spots on
a map?
The map is divided into zones. So I guess it is possible to use Dijkstra’s
Shortest Path algorithm, but it seems like a lot of work and I am sure that
it has been done many times before.
From (x,y) coordinates I need to place the user in a zone and find the
shortest path to all other zones.
Any suggestions are more than welcome. I would hate to reinvent the wheel!
Should I look at MS MapPoint or is that overkill?

--
--------------------

Jul 21 '05 #2
Lau
MapPoint would be perfect, but we need to make our own maps. Actually all
maps are going to be building plans and that doesn’t appear to be possible in
MapPoint. Or?
Jul 21 '05 #3
Hi,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to know what shortest path
algorithm MapPoint is using. If there is any misunderstanding, please feel
free to let me know.

I'm not quite sure about this. Since this question is something related to
MapPoint implementation, I suggest you to try asking in the following
newsgroups besides here.

microsoft.public.mappoint
microsoft.public.mappoint.webservice

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #4
Lau
Sorry, I don’t think I explained myself very good.

I’m not looking for MapPoints “shortest path algorithm”, but any algorithm
that can do the job. We need to make maps of theme parks, hotels, hospitals
i.e.
We idea is to find the shortest path from room A to room B. This is similar
to MapPoint, but it doesn’t seem to be possible to “make” your own maps in
MapPoint.

Therefore we are looking for a “shortest path algorithm” or preferably an
already implemented version.

Jul 21 '05 #5
What you need is graph theory. Here's the first hit from Google:
http://www.boost.org/libs/graph/doc/...ry_review.html

You could also look at this:
http://www.codeproject.com/cs/miscctrl/quickgraph.asp

It's an attempt to port the library in the first link to C#. I haven't tried
either libraries myself, but it should be a good start for you.

Colin

"Lau" <la*@newsgroup.nospam> wrote in message
news:34**********************************@microsof t.com...
Sorry, I don't think I explained myself very good.

I'm not looking for MapPoints "shortest path algorithm", but any algorithm
that can do the job. We need to make maps of theme parks, hotels, hospitals i.e.
We idea is to find the shortest path from room A to room B. This is similar to MapPoint, but it doesn't seem to be possible to "make" your own maps in
MapPoint.

Therefore we are looking for a "shortest path algorithm" or preferably an
already implemented version.

Jul 21 '05 #6
Hi,

There are many algorithms for us to get the shortest path on a graph.
Dijkstra and A* are two famous and commonly used algorithms. I think
searching through google will return many results. HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
5867
by: ThanhVu Nguyen | last post by:
Hi all, I need recommendation for a very fast shortest path algorithm. The edges are all directed, positive weights. Dijkstra shortest path will solve it just fine but the if the graph is not...
20
16986
by: Webdad | last post by:
Hi! I running my first year as industrial engineer (informatics) We have an assignment to do : .... create a playfield (matrix). Some places in that field are blocked, so you can't pass them....
5
7377
by: leezard | last post by:
I am developing a program using VB.NET that will accept a start and end point, the system then will generate the shortest path to reach the end point. Anyone here have idea on doing this or some...
3
1862
by: Dean Slindee | last post by:
Is there a way to replace the commented out parameter add syntax with a single line of code, like the .Parameter.Add("@Letter"...) line below (which does not work)? 'Dim prmLetter As New...
6
301
by: Lau | last post by:
How do I easily calculate the shortest path between two geographical spots on a map? The map is divided into zones. So I guess it is possible to use Dijkstra’s Shortest Path algorithm, but it...
4
12079
by: Shuch | last post by:
Hi all, I am in shortage of time...and i want to know if someone has a code written in c++ or c for finding the shortest path using stack or queue??????my specifications r as follow: Input...
5
2855
by: costantinos | last post by:
Hello. I have implemented the Dijkstra shortest path algorithm, it works fine but I have one question on how I can improve something. I want to find all the possible shortest paths from a node...
0
1146
by: diffuser78 | last post by:
Is there any function in networkx which can compute the shortest mean path length. (Shortest length between all pairs of the nodes in the graph). Thanks,
2
3090
by: Bytter | last post by:
Hi everyone, I need to implement a very quick (performance-wise) Dijkstra shortest path in python, and found that libboost already has such thing. Problem is: I cannot find the installation...
0
6964
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7126
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6842
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7330
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4865
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3070
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
262
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.