I need to simulate agent movements on map as follows: Agent starts a known location and moves along a road. At each road intersection, the agent uniformly chooses one possible road and moves along that. The path chosen is to be traced with a poly-line. I know how to choose a path uniformly and mark it with poly-lines once I have the data. But I am looking for how I can retrieve data like road intersection points and the roads leading from there on. |
This question belongs on gis.stackexchange.com or similar SE sites, because it has no specific connection to OSM (you are just using OSM data).
The question belongs to this forum, as I want to find road intersection along a given road form osm data
Gormo is right, this has very little to do with OSM, the issue is a generic data issue and would be the same if your underlying geodata came from any other source. (Not that I am not interested in how useful OSM data might be for such an application.
Besides, how to detect intersections has already been answered in a different question.