[Routing] "Connected Nodes"

Sascha Silbe sascha-ml-gis-osm-routing at silbe.org
Mon Oct 8 21:18:41 BST 2007


On Mon, Oct 08, 2007 at 08:19:12PM +0200, Sven Anders wrote:

> Has someone has a made a statistic about how many nodes are connected 
> by a road in OSM?
I've written a simple stats script (in Python, using sax) that 
determines the longest way along with some other values of interest to 
me. For planet-070919:

Way with highest number of segments: 6348252 (5161 segments)

Full output attached. I'm currently working on converting it to the new 
planet dump format (API .5). If there's interest, I can post the script 
once I'm finished. It's rather simple, though.

The kind of information you seem to be after (<n> longest ways etc.) is 
easier to determine using an SQL database, though.

CU Sascha

-- 
http://sascha.silbe.org/

-------------- next part --------------
#nodes:          34792426,     82488981 tags
#segments:       36023384,     51575298 tags
#ways:            3290721,     19763604 tags
#seg refs:       35130772

Longest tag names/values:
  node:
    longest name: u" this was a children's playarea with a path leading through it. Didn't want to look too dodgy :)" (len: 96, element id: 21470591)
    longest value: u'Hallo anonymer Mapper! Bitte achte auf die Kleinschreibung von "name", "residential" usw, da sie wichtig f\xfcr die Renderer ist. Auch sollten Wege an Kreuzungen wirklich verbunden sein und nur Segmente enthalten, die in dieselbe Richtung zeigen. Bei weiteren Fragen hilft die Mailingliste!  -Martin Simon' (len: 96, name: u'note', element id: 32310233)
  segment:
    longest name: u'moved according to town brige in Mandal and \xc5vik(/\xc5vig) harbor)' (len: 63, element id: 18841803)
    longest value: u"The old road was go here. But now there's building the M0, and they're dig a big hole there, so you have to go in the another way..." (len: 63, name: u'note', element id: 28079437)
  way:
    longest name: u'tiger:name_direction_prefix_1' (len: 29, element id: 5039416)
    longest value: u'GPX northbound and southbound in disagreement at south end of this way, so course in some doubt. The southbound seemed more curved, the northbound rather angular, so I considered the southbound to be the correct route. Also the Landsat looked slightly mor' (len: 29, name: u'note', element id: 2992102)

Way with highest number of segments: 6348252 (5161 segments)

real	222m44.550s
user	218m22.302s
sys	3m1.724s


wc:
#lines:    327,838,487
#words:  1,191,305,637 
#bytes: 16,696,281,494

real	84m31.588s
user	82m52.326s
sys	1m19.276s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/routing/attachments/20071008/00f89a72/attachment.pgp>


More information about the Routing mailing list