Hi All,
I have been able to convert the open street map data into a routable
network, and extract roads and intersections from that. This data will be
useful for simulating both the other two from of agent movements - random
and hybrid. For random movement, I have formulated queries to:
- find the the closest road to the start point
- find the next road intersection
- choosing one randomly at each intersection (if time permits)
- doing the above repeatedly.
So I now have the route data for random movement. I just have to have put
the queries together, and mark the route with poly-lines.
For hybrid movement, since we have the road and intersection data now, its
a matter of a few lines of code to have the simulation.
@Ramyaa - if there are any changes in the algo for hybrid movement from
what you had sent me earlier, please let me know. If not, I will proceed to
implement the algo below:
The agent moves along a chosen route, but takes short detours at random.
again, this is time bound
he picks 2 points along the route, and chooses a
diff, longer route between these two.
then if he has time, he repeats this again.
Thanks,
Nadeem