This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Simulating Random Agent Movements along Roads on Map

0

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.

asked 27 Jul '13, 17:50

Nadeem's gravatar image

Nadeem
11223
accept rate: 0%

closed 27 Jul '13, 19:16

gormo's gravatar image

gormo
2.9k32660

2

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).

(27 Jul '13, 19:15) gormo

The question belongs to this forum, as I want to find road intersection along a given road form osm data

(27 Jul '13, 19:22) Nadeem
3

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.

(27 Jul '13, 19:33) SK53 ♦
2

Besides, how to detect intersections has already been answered in a different question.

(27 Jul '13, 21:00) scai ♦

Source code available on GitHub .