views:

85

answers:

2

For no reason in particular, I'm curious what the expected number of feet you would have to walk to find the nearest road is, starting from a random point on the world, facing a random direction. I can write a program to compute this value, given the right data source.

Is there any data source containing all the roads in the world? For example, Google Maps has roads for many cities around the world. Is there any way to get access to that data? Is there an API for this kind of query?

+4  A: 

OpenStreetMaps has the data you are looking for. You might want to look at the FAQ. Here is a link to the data page

altCognito
That is an awesome site.
Claudiu
The coverage outside of USA is dodgy at best.The center of my city (750,000 people) is covered but only biggest routes are marked through the suburbs. Smaller towns are barely marked with the main roads. Secondary roads between towns are missing more often than not. If you want estimate for the USA, go ahead. For the world - no way.
SF.
That's a good point (+1), get mapping out there!
altCognito
+1  A: 

No.

You may get about all roads for 1st world countries, which will be a lot. But countries Somalia, Congo, Bhutan? Half of their roads don't exist on any map, including official maps of their own governments. Half of these that do aren't digitized, only on paper. Many of those are restricted by military.

You may find services that would provide all the easily purchasable civilian-available road maps of the world. But not all roads have been mapped, not all maps digitized and not all digital maps published or made available. And many are hopelessly outdated too.

SF.