I want to search route from one place to one another.
The places are referenced in a SQLite Database.
I think I should make loop in the SQL query but I don't know how to perform this.
I want to search route from one place to one another.
The places are referenced in a SQLite Database.
I think I should make loop in the SQL query but I don't know how to perform this.
puchka,
if I understood the question, you need a routing algorithm or graph search algorithm; in other words you cannot iterate simply on the table because you could find infinite sub-optimal solutions and you need the sortest; see Dijkastra and the related java implementation or http://www.cs.nyu.edu/~vs667/development/~DijkstraAlgorithm/ or related .
See also these SO question on