Discussion:
Need help :)calculating shortest paths with data extracted from the database
(too old to reply)
Olfa Dhaouadi
2012-05-24 13:57:32 UTC
Permalink
Hello
if any one have an idea that can help me I would be grateful
So i should create a web service wich will communicate with my android
application .in my android app the client choose two point start and
arrival this two point will be send to my web service to find the bus
that has the shortest path between them. i have a probleme in web
service side
I try to use Dijkstra's algorithm to find the shortest path between
two points. to test the Dijkstra algorithm I must extract data from a
mysql database and not put it right into my algorithm.but i dont Khnow
how can i do it
in my database I have two table that contains the bus route (bus num),
code (station id), pt_arret (station name). and another table which
contains location code (id station), latitude and longitude, and
distance (is the distance between a station and the station which
precedes.
thanks in advance :)
Erland Sommarskog
2012-05-24 21:32:14 UTC
Permalink
Post by Olfa Dhaouadi
if any one have an idea that can help me I would be grateful
So i should create a web service wich will communicate with my android
application .in my android app the client choose two point start and
arrival this two point will be send to my web service to find the bus
that has the shortest path between them. i have a probleme in web
service side
I try to use Dijkstra's algorithm to find the shortest path between
two points. to test the Dijkstra algorithm I must extract data from a
mysql database and not put it right into my algorithm.but i dont Khnow
how can i do it
in my database I have two table that contains the bus route (bus num),
code (station id), pt_arret (station name). and another table which
contains location code (id station), latitude and longitude, and
distance (is the distance between a station and the station which
precedes.
thanks in advance :)?
If you are using MySQL, I think a good start is trying a forum for
MySQL, for instance comp.databases.mysql.

This newsgroup is for Microsoft SQL Server, and while the problem
is general in nature, you would not be helped by a solution which
does not run on MySQL.
--
Erland Sommarskog, SQL Server MVP, ***@sommarskog.se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
Continue reading on narkive:
Loading...