how can we get the details surrounding the road segment and connectivity from OSM ? For example, how can I know road A is connected to road B? Is there any attributes about these segments or nodes like speeds, number of lanes, etc? If so, where is this detail in OSM? asked 05 Jan '14, 01:31 systemjim |
Not sure about all of your question nor how you are getting the data from OSM. But for knowing if road A is connected to road B, each road or way has a list of node IDs. If the two ways (roads) have node IDs in common then they connect. And they might connect in multiple places and thus have multiple node IDs in common. On the ways themselves (actually any object which includes individual points/nodes) are an arbitrarily long list of key=value pairs. If the way is marked as highway=* then there are defined key value pairs for things like maxspeed, lanes, etc. If you download a OSM file for a small area you will see that it is just an XML file with a pretty obvious schema. If you are getting any of the other types of downloads available and loading it into a GIS database, then the data will look different and you'll have to look at the tools that populate your database and what your schema is to see what is loaded. answered 05 Jan '14, 02:40 n76 |
Type "graph" in the search box above and read some of the responses to similar questions. answered 05 Jan '14, 12:02 Frederik Ramm ♦ |